]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/ctags.vim
HI flag
[dotfiles.git] / vim / .vim / plugin / ctags.vim
diff --git a/vim/.vim/plugin/ctags.vim b/vim/.vim/plugin/ctags.vim
deleted file mode 100644 (file)
index a76e736..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-" Universal Ctags creator
-" Maintainer: Sergey Matveev <stargrave@stargrave.org>
-" 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], "/")
-    if dst[0] != "/"
-        let dst = getcwd() . "/tags"
-        let src = getcwd()
-    endif
-    let cmdline = [
-        \"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:onlyCmd == v:true
-        echo join(cmdline, " ")
-        return
-    endif
-    execute "!" . join(cmdline, " ")
-    if a:verbose != v:true | redraw! | endif
-endfunction
-
-command! -nargs=1 Ctags silent call s:ctags(<f-args>, v:false, v:false)
-command! -nargs=1 Ctagsv silent call s:ctags(<f-args>, v:true, v:false)
-command! -nargs=1 Ctagscmd call s:ctags(<f-args>, v:true, v:true)