soramugi / auto-ctags.vim Goto Github PK
View Code? Open in Web Editor NEWVim plugin to execute ctags command on file change
Vim plugin to execute ctags command on file change
Hi,
I'm finding this plugin really useful, but is there any way to restrict tags file creation to certain file-extensions?
Perharps i'm missing some configuration option, but i'm getting tags created for every file I open in vim, whether it's a source file, a random .txt, or an /etc/ configuration file.
Thanks!
auto-ctags seems to everytime I trigger a save :w
and a cmd window open and destroyed immediately right after that. I think this should be fixed, pretty annoying and I have to disabled plugin entirely.
I can sure because it happened only on files that I ran ctags -R .
on its parent folders.
Gvim 8/windows 10/universal ctags
関連PR #19
Travisのvimは7.4なのでバージョンを上げて最新環境等での確認を行う。
Recent commit has the issue that vim :wq
command leaves lock file.
As far as I checked, the result is below.
E745: Using a List as a Number
E15: Invalid expression: [tags_bin_path] + auto_ctags#ctags_cmd_opt() + ['-f', tags_path, currentdir]
:wq
command leaves(i.e. doesn't erase) lock file.My vim version is below.
$ vim --version [~/.vim/bundle/auto-ctags.vim]
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 10 2018 16:50:02)
Included patches: 1-468
Compiled by ****
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +extra_search +mouse_netterm +tag_old_static
+arabic +farsi +mouse_sgr -tag_any_white
+autocmd +file_in_path -mouse_sysmouse -tcl
+autochdir +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
+balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
+browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages +toolbar
+cindent +insert_expand +path_extra +user_commands
+clientserver +job +perl +vartabs
+clipboard +jumplist +persistent_undo +vertsplit
+cmdline_compl +keymap +postscript +virtualedit
+cmdline_hist +lambda +printer +visual
+cmdline_info +langmap +profile +visualextra
+comments +libcall +python/dyn +viminfo
+conceal +linebreak +python3/dyn +vreplace
+cryptv +lispindent +quickfix +wildignore
+cscope +listcmds +reltime +wildmenu
+cursorbind +localmap +rightleft +windows
+cursorshape +lua +ruby +writebackup
+dialog_con_gui +menu +scrollbind +X11
+diff +mksession +signs -xfontset
+digraphs +modify_fname +smartindent +xim
+dnd +mouse +startuptime +xpm
-ebcdic +mouseshape +statusline +xsmp_interact
+emacs_tags +mouse_dec -sun_workshop +xterm_clipboard
+eval +mouse_gpm +syntax -xterm_save
+ex_extra -mouse_jsbterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lacl -lattr -lgpm -ldl -L/usr/lib/x86_64-linux-gnu -lluajit-5.1 -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm -lpthread -lcrypt -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm
My auto_ctags related configuration is below.
let g:auto_ctags = 1
let g:auto_ctags_directory_list = ['.localtags', '.git']
let g:auto_ctags_tags_args = "[--tag-relative --recurse --sort=yes --exclude=rootfs]"
let g:auto_ctags_search_recursively = 1
set tags+=.localtags/tags;
set tags+=.git/tags;
I reproduced it with two OS(Windows WSL and Cent OS). Both of them has this issue.
$ cat /proc/version
Linux version 4.4.0-17134-Microsoft ([email protected]) (gcc version 5.4.0 (GCC) ) #345-Microsoft Wed Sep 19 17:47:00 PST 2018
$ cat /proc/version
Linux version 3.10.0-862.11.6.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Tue Aug 14 21:49:04 UTC 2018
見落してました、すみません...
finddirはD:\\...
みたいなフルパスを切ってしまい\\...
のようにしてしまうため、Windowsでちょっとマズいことになっています。
具体的にはhome相当の配下以外ではうまくパスが展開できないと思われます
別に対処検討してます...
I installed vim plugin according to README manual:
git clone https://github.com/soramugi/auto-ctags.vim.git ~/.vim/plugin/auto-ctags.vim.git
But when I open vim editor some errors were appeared:
Error detected while processing /home/username/.vim/plugin/auto-ctags.vim.git/autoload/auto_ctags.vim:
line 14:
E117: Unknown function: vital#autoctags#import
E15: Invalid expression: vital#autoctags#import('System.File')
line 15:
E117: Unknown function: vital#autoctags#import
E15: Invalid expression: vital#autoctags#import('System.Process')
line 16:
E117: Unknown function: vital#autoctags#import
E15: Invalid expression: vital#autoctags#import('System.Filepath')
line 17:
E117: Unknown function: vital#autoctags#import
E15: Invalid expression: vital#autoctags#import('System.Job')
line 18:
E117: Unknown function: vital#autoctags#import
E15: Invalid expression: vital#autoctags#import('Async.Promise')
Press ENTER or type command to continue
Vim version
VIM - Vi IMproved 8.0
I did something wrong or it's bug? Thank You!
windows環境でciを設定して楽に確認が出来るようにする。
.NET向けのCIを試してみる
https://thinca.hatenablog.com/entry/20140812/1407775202
面倒くさいですが、カバレッジ的にこのパスを通す必要はありそうです(tinyなvimがあるといいかな)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.