aboutsummaryrefslogtreecommitdiff
path: root/vim/config/buffers.vim
blob: b5a0151b8092ba6cb3c409e230d58de907cfbf6d (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>bprevious<CR>
nnoremap <silent>
      \ ]b
      \ :<C-U>bnext<CR>