> vertically into two (like ctl-W ctl-V) and then have both
> sides be the same "viewport".
>
> I'm not sure if viewport the right term. What I mean by
> viewport is that if I type ctl-D the text would move up in the
> left window and text in the right window would move up too
> but the "overflow" from the top of the right window would go
> onto the bottom of the left window. Or if the cursor is in the
> left window, if I repeatedly type 'j', the cursor would go to
> the bottom of the left window then jump to the top of the
> right window. (Sort of like the flow of text flow in a
> magazine layout.)
>
> Is there a way to do this in vim?
Mostly, and I've had problems with it occasionally getting out of
sync (usually triggered by long wrapped lines, or using the mouse
to scroll one window) but you can come close with:
:e myfile.txt
:below vsplit
control+F to move the right-hand pane down one page
:set scrollbind
control+W h (go back to the original/left window
:set scrollbind
The only piece this doesn't get you involves the "cursor jumps
from the bottom of one window to the top of the next" bit.
Instead, when the cursor-movement (such as your example ^D or
repeaded-j) causes scrolling in either window, they both scroll
to readjust.
You'll want to read more about the 'scrollbind' setting to learn
more:
:help 'scrollbind'
-tim
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment