X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fctags.vim;fp=vim%2F.vim%2Fplugin%2Fctags.vim;h=268b27e4ea67e55ba7c6275a7492b3dca51d3c24;hb=c87a6c5de579ab6ae0e5d27b233b83bab85e17f6;hp=fbc438c019daed3852ad058dc2679df154d18cbe;hpb=8d4331f8ac20bfb0f5c6ce4ea0ada9618216c6f8;p=dotfiles.git diff --git a/vim/.vim/plugin/ctags.vim b/vim/.vim/plugin/ctags.vim index fbc438c..268b27e 100644 --- a/vim/.vim/plugin/ctags.vim +++ b/vim/.vim/plugin/ctags.vim @@ -5,10 +5,9 @@ " 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 +if exists('*Ctags') | finish | endif -function! s:ctags(lang, onlyCmd, verbose) +function! s:Ctags(lang, onlyCmd, verbose) let dst = tagfiles() if len(dst) == 0 echohl WarningMsg | echomsg "No tagfiles" | echohl None @@ -37,6 +36,6 @@ function! s:ctags(lang, onlyCmd, verbose) if a:verbose != v:true | redraw! | endif endfunction -command! -nargs=1 Ctags silent call s:ctags(, v:false, v:false) -command! -nargs=1 Ctagsv silent call s:ctags(, v:true, v:false) -command! -nargs=1 Ctagscmd call s:ctags(, v:true, v:true) +command! -nargs=1 Ctags silent call s:Ctags(, v:false, v:false) +command! -nargs=1 Ctagsv silent call s:Ctags(, v:true, v:false) +command! -nargs=1 Ctagscmd call s:Ctags(, v:true, v:true)