scrollbind

18 views
Skip to first unread message

Sean Sorrell

unread,
Apr 23, 2013, 4:04:57 PM4/23/13
to vi...@googlegroups.com

Hey nerds,

scrollbind - scroll all your windows together!

This helped me diff some log files that are almost the same except for their dates. vimdiff would've claimed every line was different - not helpful.

You should go read the helpfile, but since you won't, I'll tell you how to use it.

:set scrollbind in each window that you want to be linked, and then just start scrolling! It seems to use absolute line numbers, ignoring where your cursor was when you called the command.

See also: scrolloff - the number of lines to show when you turn over a page. You might start with 3 lines and go from there.

Happy hacking!
Sean

Jessie A. Young

unread,
Apr 23, 2013, 4:38:07 PM4/23/13
to vi...@googlegroups.com
Scrolling has never been so fun!


--
You received this message because you are subscribed to the Google Groups "VimSF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimsf+un...@googlegroups.com.
To post to this group, send email to vi...@googlegroups.com.
Visit this group at http://groups.google.com/group/vimsf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Adarsh Pandit

unread,
Apr 23, 2013, 4:39:59 PM4/23/13
to vimsf
:set scrollbind=999 keeps your cursor in the middle of the screen, I just learned.

Good one, Sean!


On Tue, Apr 23, 2013 at 1:04 PM, Sean Sorrell <seans...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "VimSF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimsf+un...@googlegroups.com.
To post to this group, send email to vi...@googlegroups.com.
Visit this group at http://groups.google.com/group/vimsf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
@adarshp
developer for thoughtbot, inc
313.454.1515 (m)

Scheduling with me? See bit.ly/adarshcalendar

Reply all
Reply to author
Forward
0 new messages