tag:blogger.com,1999:blog-28654195.post768784614276253250..comments2023-07-07T03:20:20.650-07:00Comments on VI Improved Tips :: vimrc dissected: Make (next) found match to appear in the screen's centerIhar Filipauhttp://www.blogger.com/profile/05086565400407007423noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-28654195.post-19955234018229953812010-12-19T11:45:30.358-08:002010-12-19T11:45:30.358-08:00I use this line in my vimrc:
execute 'set scr...I use this line in my vimrc:<br /><br /><i>execute 'set scrolloff='.(&lines-2)</i><br /><br />It sets the scroll offset to show the current line in the center of the window all the time (the subtraction of 2 is to make room for the status & command bar)Unknownhttps://www.blogger.com/profile/08986134864806479841noreply@blogger.com