From: Simon Ruderich Date: Sat, 10 Jul 2010 11:13:07 +0000 (+0200) Subject: vimrc: Add gb and gB to go to next/previous buffer. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=625d3ec4b88565adf112bc907e027f38ceca13b2;p=config%2Fdotfiles.git vimrc: Add gb and gB to go to next/previous buffer. --- diff --git a/vimrc b/vimrc index 0940c45..caa7a02 100644 --- a/vimrc +++ b/vimrc @@ -204,6 +204,11 @@ cnoremap nnoremap nnoremap - +" Go to next and previous buffer. Thanks to elik in #vim on Freenode +" (2010-05-16 18:38) for this idea. +nnoremap gb :bnext +nnoremap gB :bprev + " Fast access to buffers. nnoremap 1 :1b nnoremap 2 :2b