Search leaves space below

When searching in Vim and there is no match on the visible page, then vim will move on to the next match. The match will be placed on the last line (bottom). Is it possible for a coincidence to look a few rows from the bottom. So that I can do the next few lines? Perhaps you can install this as an installation in vimrc?

+4
source share
1 answer

Do you need it

:set scrolloff=3 

which always makes sure that your course has at least 3 lines.

+6
source

Source: https://habr.com/ru/post/1397835/


All Articles