X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fctags.vim;h=a76e736dc4f8528ee3ca7d9ae4569dcbc3ff80ed;hb=50295e8d1d1b2ab4d5514d441ba28e45e7699c55;hp=859020ec0a0baa85a704c1990b518bbd556fecc5;hpb=1ace98cb0d3c3f32290cbbac0f7234b45bb56ec5;p=dotfiles.git diff --git a/vim/.vim/plugin/ctags.vim b/vim/.vim/plugin/ctags.vim index 859020e..a76e736 100644 --- a/vim/.vim/plugin/ctags.vim +++ b/vim/.vim/plugin/ctags.vim @@ -1,10 +1,13 @@ -" Exuberant Ctags creator +" Universal Ctags creator " Maintainer: Sergey Matveev " License: GNU General Public License version 3 of the License or later " " Create "tags" file in your project's root first. " Then :Ctags LANG to fill it. +if exists("g:loaded_mein_ctags") | finish | endif +let g:loaded_mein_ctags = 1 + function! s:ctags(lang, onlyCmd, verbose) let dst = tagfiles()[0] let src = "/" . join(split(dst, "/")[:-2], "/") @@ -13,14 +16,14 @@ function! s:ctags(lang, onlyCmd, verbose) let src = getcwd() endif let cmdline = [ - \'uctags', - \'--languages=' . a:lang, - \'--python-kinds=-i', - \'--c++-kinds=+p', - \'--recurse', + \"uctags", + \"--languages=" . a:lang, + \"--python-kinds=-i", + \"--c++-kinds=+p", + \"--recurse", \] - if a:verbose == v:true | let cmdline += ['--verbose'] | endif - let cmdline += ['-f', dst, src] + if a:verbose == v:true | let cmdline += ["--verbose"] | endif + let cmdline += ["-f", dst, src] if a:onlyCmd == v:true echo join(cmdline, " ") return