Friday, July 16, 2010

Re: Screen repositioning when switching buffers?

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

--
OpenPGP Key-ID: 00A0FD5F
For every action, there is an equal and opposite criticism.

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