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 . .
>
> Any gurus who could work out how to do this? - is it even possible in Vim?
>
> Thanks,
>
> Phil.
> --
> Philip Rhoades
>
>
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.

Salman


-- 
سلمان حلیم

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to