Creates a '.tags' in the .git folder Allows for source directories, e.g. '.' and '/usr/include'.
Install using a plugin manager, the tags are automatically generated when a filer under source control is open.
-
vim_tags_auto_generate- Default:
1
If enabled, Vim-Tags will generate tags on file saving
let g:vim_tags_auto_generate = 1 - Default:
-
vim_tags_project_tags_command- Default:
"ctags -R --fields=+l {OPTIONS} {DIRECTORY} 2>/dev/null"
This command is used for main Ctags generation.
let g:vim_tags_project_tags_command = "ctags -R {OPTIONS} {DIRECTORY} 2>/dev/null"
- Default:
-
vim_tags_ignore_files- Default:
['.gitignore', '.svnignore', '.cvsignore']
Files containing directories and files excluded from Ctags generation.
let g:vim_tags_ignore_files = ['.gitignore', '.svnignore', '.cvsignore'] - Default:
-
vim_tags_ignore_file_comment_pattern- Default:
'^[#"]'
The pattern used to recognize comments in the ignore file.
let g:vim_tags_ignore_file_comment_pattern = '^[#"]' - Default:
-
vim_tags_directories- Default:
['.git', '.svn', 'CVS']
The default directories list where the tags files will be created. The first one found will be used. If none exists the current directory (
'.') will be taken.let g:vim_tags_directories = ['.git', '.svn', 'CVS'] - Default:
-
vim_tags_main_file- Default:
'tags'
The main tags file name.
let g:vim_tags_main_file = 'tags' - Default:
-
tags_global_tags- Default:
{}
A mapping from project name to source directory, tags will be generated for these extra directories and automatically included, this enables out-of-tree dependencies to be included in your tags database.
let g:tags_global_tags = { \ 'system': '/usr/include' \ } - Default:
-
tags_global_directory- Default:
''
If set, all the tag files from
tags_global_tagsare cached here. Useful if you haveg:tags_global_tagsset in the init.vim and the projects are of considerable size (because the configuration is globally set these tags will be generated on every version control opened locally, which is far from ideal, consider using something like local_vimrc instead).let g:tags_global_tags = { \ 'system': '/usr/include' \ } - Default:
-
vim_tags_extension- Default:
'.tags'
The extension used for additional tags files.
let g:vim_tags_extension = '.tags' - Default:
-
tags_debug- Default:
0
Enable debugging, every call to the tags command will be printed out.
let g:tags_debug = 1 - Default:
Vim-Tags plugin was written by Augusto Hack, based on the vim-tags from Szymon
Wrozynski and Contributors. It is licensed under the same terms as Vim itself.
For more info see :help license.