aboutsummaryrefslogtreecommitdiff
path: root/vim/config/buffers.vim
blob: ddd40b9ff3810a21cf82bc774c8460a5251c126a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Allow jumping between windows and tabs to find an open instance of a given
" buffer with :sbuffer.
set switchbuf=useopen
if v:version >= 701
  set switchbuf+=usetab
endif

" Cycle back and forth through buffers.
nnoremap <silent>
      \ [b
      \ :<C-U>bp<CR>
nnoremap <silent>
      \ ]b
      \ :<C-U>bn<CR>