Olivier Lalonde's blog

Hey. I'm a friendly hacker, HN addict and startup guy. I tweet as @o_lalonde.

My Biggest Vim Productivity Boost

This week I added the following snippet to my .vimrc (.vimrc.after if you are using Janus):

map <C-J> :bnext<CR>
map <C-K> :bprev<CR>
map <C-L> :tabn<CR>
map <C-H> :tabp<CR>

It maps CTRL-j and CTRL-k to next and previous buffer and CTRL-l and CTRL-h to next and previous tabs.

It is by far the biggest productivity boost I have gotten out of my .vimrc file.

Buffer and tab switching has never been that fast and easy.

Macbook tip: remap your CAPS LOCK key to CTRL.

Want to get notified about more articles like this? Follow @o_lalonde on Twitter.