Friday, February 4, 2011

Re: How can I position the "find next" result at a given line on the screen?

On 4/02/11 9:25 PM, Rostyslaw Lewyckyj wrote:
> I want the result of a "find next" command to be displayed on a chosen line of my
> screen,
> e.g. at the top, or the middle, or line n; rather than on the bottom line?

Maybe something like

:noremap n nzz

See

:help scroll-cursor

for some commands to move the cursor line around the screen.

Not sure how you'd make it work for the / command itself, though. Or how
reliable it would be, etc.. I guess it's a start, though!

Ben.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: