Improve Vim list jumping

This commit is contained in:
Talia 2021-08-09 11:38:06 +02:00
parent cec6982ccf
commit 6b342427ac

View file

@ -582,10 +582,10 @@ endfun
noremap <C-s> :call <sid>saveprompt()<CR>
nnoremap <C-n> :bnext<CR>
nnoremap <C-p> :bprevious<CR>
nnoremap <leader>j :lnext<cr>
nnoremap <leader>k :lNext<cr>
nnoremap <leader><leader>j :cnext<cr>
nnoremap <leader><leader>k :cNext<cr>
nnoremap <leader>j :lnext \| normal zt<cr>
nnoremap <leader>k :lNext \| normal zt<cr>
nnoremap <leader><leader>j :cnext \| normal zt<cr>
nnoremap <leader><leader>k :cNext \| normal zt<cr>
nnoremap <C-i> Bi <esc>i
nnoremap <C-a> Ea <esc>a
" This one does nothing, but I'm adding it to remember not to remap the tab key