Skip to content

Commit 0706f73

Browse files
committed
Plugins vim-easytags and tagbar
There's a tad bit of external setup required here: - Using your package manager, install the program `ctags`. ------------------------------------------------------------------------ There are a number of plugins being installed here. - vim-misc is a dependency of vim-easytags - vim-easytags is a plugin that generates tags files, which is a compiled index of all the functions, variables, and identifies that you use in your project. - tagbar is a plugin that reads the output from ctags and displays the information in an accessible way inside Vim. Most of everything is configured out of the box, and you can press ? inside the tagbar buffer to learn how to use it (after opening it with \b). For more information, - http://majutsushi.github.io/tagbar/ - https://github.com/xolox/vim-easytags - https://github.com/xolox/vim-misc These give you the power to see what kinds of methods, variables, functions, and other types of declarations you have in your files. If in the future you're wondering why `tags` files start showing up in random places, this step is your answer.
1 parent 0f2a776 commit 0706f73

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

vimrc.vim

+19
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Plugin 'vim-airline/vim-airline-themes'
1818
Plugin 'scrooloose/nerdtree'
1919
Plugin 'jistr/vim-nerdtree-tabs'
2020
Plugin 'vim-syntastic/syntastic'
21+
Plugin 'xolox/vim-misc'
22+
Plugin 'xolox/vim-easytags'
23+
Plugin 'majutsushi/tagbar'
2124

2225
call vundle#end()
2326

@@ -88,3 +91,19 @@ augroup mySyntastic
8891
augroup END
8992

9093

94+
" ----- xolox/vim-easytags settings -----
95+
" Where to look for tags files
96+
set tags=./tags;,~/.vimtags
97+
" Sensible defaults
98+
let g:easytags_events = ['BufReadPost', 'BufWritePost']
99+
let g:easytags_async = 1
100+
let g:easytags_dynamic_files = 2
101+
let g:easytags_resolve_links = 1
102+
let g:easytags_suppress_ctags_warning = 1
103+
104+
" ----- majutsushi/tagbar settings -----
105+
" Open/close tagbar with \b
106+
nmap <silent> <leader>b :TagbarToggle<CR>
107+
" Uncomment to open tagbar automatically whenever possible
108+
"autocmd BufEnter * nested :call tagbar#autoopen(0)
109+

0 commit comments

Comments
 (0)