Vim/vi scroll-margin

Frank Wiles frank at wiles.org
Mon Apr 25 11:22:15 CDT 2005


On Mon, 25 Apr 2005 09:59:54 -0500
Gerald Combs <gerald at ethereal.com> wrote:

> Is it possible to force vim/vi to not place the cursor at the bottom
> of the screen when searching?  For example, if I search for
> "some_func()" and match the example below, vim will more often than
> not place the cursor and the first line of some_func() at the bottom
> of the screen. If I want to see all of the arguments to some_func, I
> have to scroll down.  Pine has a setting called "scroll-margin" that
> forces the cursor into a zone <n> lines from the top and bottom of the
> screen.  Does vim have something similar?
> 
>     some_func(a, really, long, list, of, arguments, that,
>         spills, over, into, several, lines, and, will, likely, be,
>         hidden, from, view, thereby, requiring, a, bit, of,
>         scrolling);

  Check out this vim tip: 

  http://www.vim.org/tips/tip.php?tip_id=528

 ---------------------------------
   Frank Wiles <frank at wiles.org>
   http://www.wiles.org
 ---------------------------------



More information about the Kclug mailing list