On Sun, Sep 26, 2010 at 9:35 PM, Vlad Irnov <[email protected]> wrote:
>
>
> 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.

Thanks! VOoM is a nice plugin. Nico Raffo had written a code to scroll
the buffer by going to it as your plugin does. Anyway, I didn't know
about the noautocmd command. I can use it to improve the code. Conque
shell sets a variable with the name of the conque term buffer. So it's
easy to jump to it.

-- 
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