From ff8657a1a50bbbe5ef1fad71f269bca361e53f02 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 3 Apr 2024 23:54:03 +0200 Subject: vimrc: Add `[b` and `]b` buffer cycling mappings I've had these on `k` and `j` since the early days, but those mappings no longer feel logical to me. It seems that `[b` and `]b` are unbound, so I decided to bind these to buffer switching, for the rare times when I need it. Eventually I'll probably remove one or the other set depending on what I end up sticking with. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vimrc b/vimrc index ed9824c..4dd0015 100644 --- a/vimrc +++ b/vimrc @@ -506,6 +506,9 @@ " 2023.09.25: " * Turn on 'smoothscroll'. " +" 2024.04.03: +" * Add `[b` and `]b` mappings for previous and next buffer. +" " Pathogen @@ -825,6 +828,8 @@ nnoremap g$ $ " Easier buffer switching nnoremap j :bnext nnoremap k :bprevious +nnoremap ]b :bnext +nnoremap [b :bprevious " Close buffer without closing split " http://stackoverflow.com/a/4468491 -- cgit v1.2.3