Vim Tips Wiki
(Clean and reword.)
(Uploaded by JohnBot from a locally edited file)
Line 1: Line 1:
  +
{{TipImported
{{Tip
 
 
|id=52
 
|id=52
  +
|previous=51
|title=Scrolling synchronously
 
  +
|next=53
|created=March 18, 2001 12:27
+
|created=March 18, 2001
 
|complexity=basic
 
|complexity=basic
 
|author=Anonymous
 
|author=Anonymous
 
|version=5.7
 
|version=5.7
 
|rating=154/48
 
|rating=154/48
 
}}
|text=
 
 
When you are displaying more than one window, you can set the scrollbind option in each window so they scroll together.
 
When you are displaying more than one window, you can set the scrollbind option in each window so they scroll together.
   
Line 19: Line 20:
 
When you scroll a window which has 'scrollbind' set, all other 'scrollbind' windows are scrolled the same amount, if possible.
 
When you scroll a window which has 'scrollbind' set, all other 'scrollbind' windows are scrolled the same amount, if possible.
   
== References ==
+
==References==
{{help|scroll-binding}}<br>
+
*{{help|scroll-binding}}
{{help|'scrollbind'}}
+
*{{help|'scrollbind'}}
 
}}
 
   
== Comments ==
+
==Comments==

Revision as of 10:32, 30 October 2007

Tip 52 Printable Monobook Previous Next

created March 18, 2001 · complexity basic · author Anonymous · version 5.7


When you are displaying more than one window, you can set the scrollbind option in each window so they scroll together.

In each window that should scroll simultaneously, enter the command:

:set scrollbind

You can enter scb as an abbreviation for scrollbind, and the ! flag causes set to toggle a boolean option. Therefore, it is convenient to enter the following to toggle scrollbind on or off:

:set scb!

When you scroll a window which has 'scrollbind' set, all other 'scrollbind' windows are scrolled the same amount, if possible.

References

Comments