On Sep 24, 9:20 pm, "Jakson A. Aquino" <[email protected]> wrote:
> Hi,
>
> Suppose that I have split a window in two with different files loaded
> in each new window. How can I scroll one window to show the end of the
> file without leaving the current buffer? Is it possible to that with
> setpos()? I have tried the following command, but it didn't work:
>
> :call setpos('.', [2, 122, 1, 0])
>
> The real problem is that I would like to be able to scroll a conque
> shell to see length outputs without having to switch to the shell
> buffer. Conque shell is here:
>
>      http://www.vim.org/scripts/script.php?script_id=2771
>
> Thanks,
>
> Jakson Aquino

Some time ago I wrote a function for automatic scrolling of all
windows with a particular buffer.
It's in my plugin
http://www.vim.org/scripts/script.php?script_id=2657
See file plugin/voom.vim, function Voom_LogScroll().

It should be easy to adopt it to scroll all windows with a buffer
number bufnumber. Just pass bufnumber as argument and change
s:voom_logbnr to a:bufnumber. You may also want to get rid of
'noautocmd' when switching windows.

It's not complicated, but there are a few caveats. It's not possible
to use it when in Ex mode, that is after 'Q' or 'gQ'. Also, visiting
other tabs is very slow in GUI Vim on Linux, so you may want to
disable scrolling windows in other tabs.

Regards,
Vlad

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui