Thursday, September 30, 2010

Re: gvim, how to search tab by name and then go to this tab?

On Sep 30, 4:00 pm, Andy Wokula <anw...@yahoo.de> wrote:
> Am 30.09.2010 17:24, schrieb Zac Lee:
>
> > gvim, how to search tab by name and then go to this tab?
>
> given "by name" means buffer names:
>
> " vimrc:
> :set swb=usetab
>
> " search for a tab page in Cmdline mode (or open a new tab page):
> :tab sbuf {part-of-buffer-name}<Tab>
>

I think :tab drop will also work, and will also open a new buffer (in
a new tab) for the file if it's not already open.

Normally I don't feel the need to do this, however, since I either use
[count]gt or I need a new buffer, and I use :tabe.

This helps for the [count]gt approach:
http://vim.wikia.com/wiki/Show_tab_number_in_your_tab_line

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

No comments: