On Sun, Sep 26, 2010 at 01:55:23AM +0200, Tony Mechelynck wrote:
> On 25/09/10 03:20, Jakson A. Aquino 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
> >
>
> You've got an answer which involves going to the other window and
> coming back. If you don't want to leave the current window, even
> temporarily, then AFAIK the only way to scroll another window is
> with the mouse. Of course, for that you need:
> - a Vim which can get mouse events
> - a scrollbar in the other window.
>
> A mouse wheel is not enough: turning the mouse's wheel scrolls the
> current window, even if the mouse pointer is over the other one.
Thanks for your reply. I want something not interactive. I wrote a
patch to make setpos() working with buffers that are not the current
one, but setting the cursor position isn't enough to scroll the
buffer. Hence, the only way seems to be going to the other window.
Best,
Jakson
--
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