4 ms·
I used to bind 'jk' to escape but it led to a few problems, in particular I would compulsively use jk as escape on remote systems I hadn't configured myself. In
by bardan 3y ago
I used to bind 'jk' to escape but it led to a few problems, in particular I would compulsively use jk as escape on remote systems I hadn't configured myself. In the end I realized I didn't mind ctrl-[ and have used that since.
- yjftsjthsd-h 3y agoI discovered that ctrl-c will go to normal mode, which is apparently rare but is an easy one-hand solution without moving your hand as far (and it doesn't need any config).
- drbaba 3y agoKeep in mind that there is a subtle difference between Ctrl-C and Ctrl-[. The latter is equivalent to Esc, but I think the former will for example prevent abbreviation expansion and block some plugins, which can lead to weird bugs if you’ve customized your Vim a bit. I think you can however `inoremap <C-c> <esc>` locally to make it a bit safer, and just use the default Ctrl-C remotely (if your vimrc is not there then there’s probably no plugins or abbreviations to worry about).
- yjftsjthsd-h 3y agoGood point - IIRC it also breaks some uses of visual mode(?)