anna schrieb:
> If we split the vim to open many buffers, we can change the cursor
> focus using mouse or pressing <CTRL-W><CTRL-W>.
> When I jump the cursor focus to other buffer, I want the opened buffer
> is still there.
> If we use :b + buffer number, this will make replace the current
> display to other buffer.
> For example, we have 2 buffers opened. Buffer1 is on top, and buffer2
> is at the bottom. When the cursor focus is at buffer1, then we
> execute :b 2. Then both will show buffer2.
> I don't want this to happen. I just want the cursor focus move to
> buffer2.
> Using <CTRL-W><CTRL-W> is one solution. However, I want it jump
> directly to a certain buffer, without traversing through buffers
> sequentially.
> 
> Any idea?

You can use :sb instead of :b, together with the 'switchbuf' option:

    :set switchbuf=useopen
    :sb 1
    :sb 2

-- 
Andy

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to