On 05/12/13 23:53, Alexey Muranov wrote:
I am trying to understand how tags work in Vim.  I do not have crated any tags 
files, but TagBar works and shows some document sections, but not all.  I would 
like to understand what is going on.

Is there any way to find out what tags file is currently used in Vim? Or does 
TagBar work without a tags file?

Thanks,

Alexey.


I don't know about TagBar. About the use of tags in Vim, see
        :help 'tags'
        :help tagsrch.txt

For source files (in C etc.) you should arrange to have such tags files generated by some utility (Exuberant Ctags is recommended) and placed where Vim can find them when looking for them.

For the help, Vim uses a tags file in every help directory, i.e., in each of the following directories which exist and contain help files:

~/.vim/doc/                     (Unix)
~/vimfiles/doc/                 (Windows)
$VIM/vimfiles/doc/
$VIMRUNTIME/doc/
$VIM/vimfiles/after/doc/        (rare)
~/vimfiles/after/doc/           (Windows:rare)
~/.vim/after/doc/               (Unix:rare)

The tags file in $VIMRUNTIME/doc (where you should not add, remove, or change any files) is installed together with the rest of the runtime files. If you add, remove, or modify help files in other directories, you should run :helptags for the modified directory.

See     :help :helptags


Best regards,
Tony.
--
That reminds me of a friend of mine who went north to work on the Alaskan
pipeline.  Before he went up there, he was just a skinny little runt.  When
he got back, he was a husky fucker.

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

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to