On 2021-03-12, DieSpinne wrote:
> Hi Tonymec.
> Once one jumps to another position in the same buffer, he knows the buffer 
> will
> scroll, that's quite inevitable, so there is not much expectation to have the
> very same position when coming back (though it would be admitedly cool). But
> when switching buffers, it is actually surprising behavior. Note how other
> editors and web browsers won't scroll if you change tabs.

Vim retains the cursor position and the view of a window when
changing windows in a tab or when changing tabs.  You're not
changing windows or tabs, you're changing buffers in one window.
The view into a buffer is not a property of the buffer, it is
a property of the window.  You can view a buffer in more than one
window and each window can have its own view, including its own
position in the buffer and its own cursor location.

See

    :help windows-intro

for a little on this.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20210312192856.GE4087%40phoenix.

Raspunde prin e-mail lui