Hacker News new | ask | show | jobs
by yjftsjthsd-h 950 days ago
I 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).
1 comments

Keep 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).

Good point - IIRC it also breaks some uses of visual mode(?)