On Sun, Sep 27, 2009 at 09:00:51PM +0100, Thomas Adam wrote:
> 
> Hello all,
> 
> I tend to use vim with a mixture of splits and tabs, and it's tabs
> specifically which I am interested in.
> 
> I use ctags a lot with vim and find myself pressing CTRL-] all the
> time to jump to a function's definition.  What I am interested in
> doing is getting "CTRL-]"'s functionality to work like the following:
> 
> * If the file CTRL-] would jump to is already open, and in a new tab,
> use *that* tab to jump to the function's definition.
> 
> * If the file CTRL-] would jump to isn't already open, switch to a new
> tab with that file open and the correct function under the cursor.
Try "set switchbuf=usetab". Also take a look at :h switchbuf.

-arun

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

Reply via email to