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:
Talia 2018-04-12 08:20:44 +02:00
parent c61240c532
commit 02f2747c9e

4
vimrc
View file

@ -380,6 +380,10 @@ command! -nargs=? Scratch new | set buftype=nofile | set filetype=<args>
let mapleader = "\\"
" --- Moving Between Buffers ---
nnoremap <leader>n :next<CR>:args<CR>
nnoremap <leader>p :previous<CR>:args<CR>
let g:jmp_dist = 8
map <C-j> :exec "normal ".g:jmp_dist."j"<CR>
map <C-k> :exec "normal ".g:jmp_dist."k"<CR>