If you use <C-]> to jump to a tags defination, you can use "g<C-]>"
instead of "<C-]>". Then if there are more than one match, you will be
asked to choose one. Although this method will not work when you
start vim with a tag specified.
I have the following maps in my .vimrc to switch the meaning of "g<C-]
>" and "<C-]>".
:noremap <C-]> g<C-]>
:noremap g<C-]> <C-]>
BR
Vincent
On May 7, 10:18 am, Mahurshi Akilla <[email protected]> wrote:
> How do I switch between files when I have more than one file with the
> same tag info?
>
> e.g.
> filetag /mypath/folder1/file.txt
> filetag /mypath/folder2/file.txt
>
> When I open vim with
> vim -t filetag
>
> It says "tag 1 of 2 or more" and goes to the first one.
>
> How do I tell it to go to the next file?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---