vim: additional keymaps to center screen after jumps

This commit is contained in:
Fernando Schauenburg 2023-08-05 15:03:28 +02:00
parent 1c46c9be64
commit 280dc24960

View file

@ -20,9 +20,11 @@ vmap('g<c-x>', 'g<c-x>gv')
vmap('>', '><cr>gv')
vmap('<', '<<cr>gv')
-- place next/previous search result in center of screen
-- place destination of important movements in the center of the screen
nmap('n', 'nzzzv')
nmap('N', 'Nzzzv')
nmap('<c-d>', '<c-d>zzzv')
nmap('<c-u>', '<c-u>zzzv')
-- easier window navigation
nmap('<c-j>', '<c-w>j')