1 " Exuberant Ctags creator
2 " Maintainer: Sergey Matveev <stargrave@stargrave.org>
3 " License: GNU General Public License version 3 of the License or later
5 " Create "tags" file in your project's root first.
6 " Then :Ctags LANG to fill it.
8 function! s:ctags(lang, verbose)
9 let dst = tagfiles()[0]
10 let src = "/" . join(split(dst, "/")[:-2], "/")
12 let dst = getcwd() . "/tags"
17 \'--languages=' . a:lang,
21 if a:verbose == v:true | let cmdline += ['--verbose'] | endif
22 let cmdline += ['-f', dst, src]
23 execute "!" . join(cmdline, " ")
24 if a:verbose != v:true | redraw! | endif
27 command! -nargs=1 Ctags silent call s:ctags(<f-args>, v:false)
28 command! -nargs=1 Ctagsv silent call s:ctags(<f-args>, v:true)