On Dec 22, 3:14 am, Tom Link <micat...@gmail.com> wrote:
>
> I tried to wrap this up in a function. Unfortunately it doesn't seem
> to work properly. The windows always get out of sync:
>
> function! reader#Reader()
>     let top = line('w$') + 1
>
>     wincmd v
>     exec 'norm! '. top .'ztM'
>     setlocal scrollbind
>
>     wincmd p
>     setlocal scrollbind
> endf
>
> Do you have an idea how to make this work?
>

That looks like a pretty neat function! When do the Windows get out of
sync? It *looks* like it should work.

Do you have "scrolloff" set to anything? To make it work in general,
you'll need to clear this option at the beginning of your function and
(probably) restore it later.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to