最近在學習用vim,再利用ctags 創建tags 的時候出現問題shell
ctags -R .vim
ctags: skipping ***: it is not a regular file.學習
相似這個問題可能你運行的ctags 不是 Exuberant Ctags, 而是 GNU Emacsetags
, code
輸入regexp
ctags --version
ip
ctags (GNU Emacs 23.1) Copyright (C) 2009 Free Software Foundation, Inc. This program is distributed under the terms in ETAGS.README
man ctags能夠看到rem
-R, --no-regex Don't do any more regexp matching on the following files. May be freely intermixed with filenames and the --regex option.
You could probably generate the tags recursively using shell magic, but you may run into problems down the road if you're expecting Exuberant Ctags. So the best solution is probably to install the ctags you want instead:get
sudo apt-get install exuberant-ctags
另外一種多是it
It occurs if you have elvis-tools installed . remove them with something likeio
sudo apt-get remove elvis-tools
and then install exuberant-ctags by
sudo apt-get install exuberant-ctags