Center searched phrases when cycling through them

2 Points

Lucas Godoy Lucas Godoy

9 years ago

Put the searched word in the middle of the screen.

nnoremap <silent>n nzz
nnoremap <silent>N Nzz
nnoremap <silent>* *zz

Martínez Ortiz Saúl Axel

Martínez Ortiz Saúl Axel 5 years ago

I usually add zv at the end of those to also open folds