vim:keys: Center search on <CR> too
In addition to center the cursor-line on `n` do it right after accepting the search as well.
This commit is contained in:
@@ -262,6 +262,10 @@ vnoremap = =gv
|
||||
|
||||
" Center search results
|
||||
noremap n nzz
|
||||
cnoremap <expr> <CR> "<CR>" .
|
||||
\ (getcmdtype() == '/' \|\| getcmdtype() == '?'
|
||||
\ ? "zz"
|
||||
\ : "")
|
||||
|
||||
" Switch to lower/upper case
|
||||
nnoremap <leader><C-U> gUl
|
||||
|
||||
Reference in New Issue
Block a user