Friday, April 2, 2010

Switching between buffer with window appearance kept

Hello,
If you do the following:

gvim -u NONE file1
:tabe file2

you get two tabs containing file1 and file2 respectively. If you
switch between these tabs using CTRL-PageDown, the appearance of the
window is kept (top number line and cursor position kept).

If you do:
gvim -u NONE file1
:e file2

you load 2 buffers file1 and file2. If you switch between them
using :bp, the appearance of the window is not kept (the current line
goes generally to the middle of the screen and the cursor column is
1).

Is there a command, a setting or a script which allows switching
between buffers with window appearance kept?

Best regards
Jean Johner

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

To unsubscribe, reply using "remove me" as the subject.

No comments:

Post a Comment