On Sat, Apr 13, 2013 at 07:19:46AM -0400, Salman Halim wrote:
> On Saturday, April 13, 2013, Philip Rhoades wrote:
>
> > People,
> >
> > With two text files open in vertical panels, I would like to be able to
> > cursor around on the left side file and for the same (or nearly the same
> > line) to be centred and highlighted on the right side . .
> I might be simplifying it a bit, but how about going to the top of both
> files and executing:
>
> :windo set cursorbind scrollbind cursorline
>
> It seems to me that this would keep both files in sync and highlight the
> current line in both windows.
This seems like it should work, but I find that in Vim >= 7.3.547 the
other window's cursorline highlight is not updated until I do one of:
1. Focus the other window
2. :redraw!
This is the case for me even when I disable 'lazyredraw'.
:windo set nolazyredraw cursorbind scrollbind cursorline
A regular :redraw isn't enough, either. I must add the bang to get
the effect. Is there possibly another setting that I'm not thinking
of that could play a part in this?
--
Erik Falor http://unnovative.net
Registered Linux User #445632 http://linuxcounter.net
Saturday, April 13, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment