Friday, July 16, 2010

Re: Screen repositioning when switching buffers?

On 07/16/2010 03:10 AM, Jan Larres wrote:
> AK<andrei.avk@gmail.com>:
>> This was an annoyance for me for a long time, and I have to ask: what is
>> the reasoning behind doing an action similar (or the same as?) command
>> 'zz' when switching buffers, for example with :b and ctrl-^ commands? I
>> mean that cursor's line may be in the middle of the screen but after
>> hitting ctrl-^ twice it may be at the bottom, if I'm near the end of
>> file.
>
> This tip should do what you want:
>
> http://vim.wikia.com/wiki/Avoid_scrolling_when_switch_buffers
>
> Cheers,
> Jan
>

Thanks, this works perfectly.

-ak

--
The press, the machine, the railway, the telegraph are premises whose
thousand-year conclusion no one has yet dared to draw. Friedrich Nietzsche

--
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: