Add leader+n, leader+p to move in arglist
leader+n moves to the [N]ext buffer in the arg list leader+p moves to the [P]revious buffer in the arg list as simple as that ;)
This commit is contained in:
parent
c61240c532
commit
02f2747c9e
1 changed files with 4 additions and 0 deletions
4
vimrc
4
vimrc
|
@ -380,6 +380,10 @@ command! -nargs=? Scratch new | set buftype=nofile | set filetype=<args>
|
||||||
|
|
||||||
let mapleader = "\\"
|
let mapleader = "\\"
|
||||||
|
|
||||||
|
" --- Moving Between Buffers ---
|
||||||
|
nnoremap <leader>n :next<CR>:args<CR>
|
||||||
|
nnoremap <leader>p :previous<CR>:args<CR>
|
||||||
|
|
||||||
let g:jmp_dist = 8
|
let g:jmp_dist = 8
|
||||||
map <C-j> :exec "normal ".g:jmp_dist."j"<CR>
|
map <C-j> :exec "normal ".g:jmp_dist."j"<CR>
|
||||||
map <C-k> :exec "normal ".g:jmp_dist."k"<CR>
|
map <C-k> :exec "normal ".g:jmp_dist."k"<CR>
|
||||||
|
|
Loading…
Reference in a new issue