Re:Snake Vim Trainer
by zachgersh on Friday August 16, 2013 @10:25AM
(#6224149)
This should get you comfortable with using the h,j,k,l mapping then. I actually turn arrow keys off in my vimrc, I can definitively say it is one of the things that has made me faster.
[ Parent
| on HN ]
Re:Snake Vim Trainer
by oftenwrong on Friday August 16, 2013 @11:33AM
(#6224610)
Do not turn them off; remap them! That is valuable keyboard real estate.
I use them for buffer switching, since I do that frequently. Left and right change to the next and previous buffers, respectively. Down to quickly swap to the previously focused buffer. Up to bring up a buffer switch menu. Here are the .vimrc lines:
" Arrow keys for buffer switching
nnoremap <left> :bprev<cr>
nnoremap <right> :bnext<cr>
nnoremap <down> :buffer #<cr>
nnoremap <up> :buffers<cr>:buffer<space>Such a good call! I don't use buffers enough :)
Great tip!
Good point about using this to get me comfortable with the keymapping. I dunno if I'll get too depressed from dying over and over before I get the hang of it though! ;)