3 ms·
I remapped esc to jj based on some excellent blog post I recently read and I love it. Will get the link or post how if anyone is interested.
by jberryman 16y ago
I remapped esc to jj based on some excellent blog post I recently read and I love it. Will get the link or post how if anyone is interested.
- SkyMarshal 16y agoWas it this one: http://news.ycombinator.com/item?id=1687701 http://news.ycombinator.com/item?id=1687701 I did the same thing, based on that post. Edit: er, maybe not that one, can't find it in the page. Could have sworn that was it though...
- ed 16y agoProbably this one: http://news.ycombinator.com/item?id=1710702 http://news.ycombinator.com/item?id=1710702 That's where I picked it up, too :-) Incidentally I also remap jh to write & exit insert mode (inoremap jh <ESC>:w<cr>). This turns out to be super helpful for web development, which often requires that you hop over to a browser after modifying code.
- tel 16y agoIt may not have quite the same effect but :au FocusLost * :wa should autosave when you switch to the browser without requiring keypresses.
- graywh 16y agoOnly when using gVim.
- thecoffman 16y agoThis gets annoying sometimes if you're working in an unnamed file. If you haven't saved yet, or don't intend to (just a scratch buffer or something) it throws an error every time you switch contexts.