vim: additional keymaps to center screen after jumps
This commit is contained in:
parent
1c46c9be64
commit
280dc24960
1 changed files with 3 additions and 1 deletions
|
@ -20,9 +20,11 @@ vmap('g<c-x>', 'g<c-x>gv')
|
||||||
vmap('>', '><cr>gv')
|
vmap('>', '><cr>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('N', 'Nzzzv')
|
nmap('N', 'Nzzzv')
|
||||||
|
nmap('<c-d>', '<c-d>zzzv')
|
||||||
|
nmap('<c-u>', '<c-u>zzzv')
|
||||||
|
|
||||||
-- easier window navigation
|
-- easier window navigation
|
||||||
nmap('<c-j>', '<c-w>j')
|
nmap('<c-j>', '<c-w>j')
|
||||||
|
|
Loading…
Add table
Reference in a new issue