2

I often want to insert a single word with vim. Is there a way to insert as many Chars as you want until you type a <Space> which then acts as an <esc>? I know that a normal i with an <esc> doesn't take too long, but I would like to have such a command and the <esc> is quiet hard to reach.

sudo bangbang
  • 27,127
  • 11
  • 75
  • 77
Michael
  • 657
  • 5
  • 22

2 Answers2

2

You should consider the following

  • remap caps lock to esc or;
  • remap caps lock to control, and then use
    the alias for esc which is control-[.

Otherwise, though this isn't quite what you're looking for, see this post for a possible approach, but also read Ingo Karkat's answer there for why it may not be such a great idea to make such mappings.

Community
  • 1
  • 1
zarak
  • 2,933
  • 3
  • 23
  • 29
  • I think I will accept it. It seriously isn't that important – Michael Aug 21 '16 at 10:37
  • 1
    Another common hack is to `inoremap kj | cnoremap kj `, as `kj` almost never shows up in English text, is just under your fingers on a QWERTY keyboard, and you can just mash it with your middle and index finger. – Amadan Aug 22 '16 at 02:17
0

Please mention the most underrated <C-c>

P4C
  • 507
  • 5
  • 10
  • They often do the same thing, but they are [not equivalent](http://stackoverflow.com/questions/5030164/whats-the-difference-between-ctrlc-and-ctrl). You shouldn't train yourself to use one as a synonym for the other understanding the difference. – Amadan Aug 23 '16 at 03:37