vim:keys: Center search results after N too

Forgot that one.
This commit is contained in:
2023-02-15 11:32:05 +01:00
parent 8e71a3f12e
commit 1933218756

View File

@@ -271,6 +271,7 @@ vnoremap = =gv
" Center search results
noremap n nzz
noremap N Nzz
cnoremap <expr> <CR> "<CR>" .
\ (getcmdtype() == '/' \|\| getcmdtype() == '?'
\ ? "zz"