4 ms·
Another great addition is: http://vim.wikia.com/wiki/Avoid_the_escape_key http://vim.wikia.com/wiki/Avoid_the_escape_key Getting out of insert mode with a doub
by drats 15y ago
Another great addition is: http://vim.wikia.com/wiki/Avoid_the_escape_key http://vim.wikia.com/wiki/Avoid_the_escape_key
Getting out of insert mode with a double j instead of moving your hand (esc) or doing the slightly awkward ctrl+[ is a godsend.
- obiterdictum 15y agoAnother good alternative is to remap the infrequently used Caps-Lock key to Esc (what Emacs users remapped to Control for ages). http://c2.com/cgi/wiki?RemapCapsLock http://c2.com/cgi/wiki?RemapCapsLock
- irahul 15y agoI am an avid vimmer, but I sometimes use Emacs. I have capslock mapped to ESC, and it works well in emacs. I am pretty comfortable with C-{some_key}. It's the M-C-{some_key} that are a pain. ESC-C-{some_key} is what I use and since I have my capslock mapped, it's convenient.
- Nick_C 15y agoI write a lot of shell scripts and C where $UPPER_CASE variables are common. Is it still worth remapping Caps-Lock? (The problem is it would be remapped system-wide, not just in Vim.)
- qwertyboy 15y agoActually, Ctrl-c is the fastest way to get back to normal mode. Unlike Ctrl-[ and <Esc>, it does not check for abbreviations and does not trigger InsertLeave. And on most keyboards it's even easier to type.
- sunkencity 15y agoWow. Thanks! That is fantastic. great tip.
- pyre 15y agoCtrl-c is not always equivalent to <Esc>. For example, if you hit q: to get the command history editor, Ctrl-c will close that buffer, but <Esc> won't.
- eridius 15y agoIs not triggering InsertLeave a good thing or a bad thing?