Keep search matches in the middle of the screen

9 Points

Florian Beer Florian Beer

4 years ago

This moves the matches for your search to the center of the screen when you press n or N so it is easier to identify where you are in your document.

nnoremap n nzz
nnoremap N Nzz