3 ms·
I accidentally used Vim the other day. I noticed Vim now has Emacs keybindings -- C-n goes to the next line, C-p goes to the previous line, etc. For a second,
by jrockway 17y ago
I accidentally used Vim the other day. I noticed Vim now has Emacs keybindings -- C-n goes to the next line, C-p goes to the previous line, etc. For a second, I thought that C-x C-s was going to save my file and I was going to be able to exit with C-x C-c. Nope. I had to make the journey over to the ESC key. So close...
- Schmidt 17y agoYou can use ZZ to save and close a document in Vim :)
- jrockway 17y agoI thought that sequence showed me an interactive listing of processes.
- mapleoin 17y agoI think you're supposed to map Caps to be an ESC key in vim, just like most people who use emacs map it to be an extra Ctrl.
- aperiodic 17y agoNo, you map it to Ctrl, and use Ctrl-[ instead of Esc.
- bilban 17y agoCan't you just use ctrl-c?
- andrewl 17y agoI have jj mapped to Esc in insert mode. If you type it quickly, the two j characters vanish and you escape out of insert mode. If you type them slowly, or preface them with ^v, you get two j characters in your text. I rarely need two j's in my text, of course, so it's a good escape key sequence, but pick whatever you want. I chose jj because it keeps me on home row.