最近在学习用vim,再利用ctags 建立tags 的时候出现问题
ctags -R .
ctags: skipping ***: it is not a regular file.
类似这个问题可能你运行的ctags 不是 Exuberant Ctags, 而是 GNU Emacsetags
,
输入
ctags --version
ctags (GNU Emacs 23.1)
Copyright (C) 2009 Free Software Foundation, Inc.
This program is distributed under the terms in ETAGS.README
man ctags可以看到
-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:
sudo apt-get install exuberant-ctags
另一种可能是
It occurs if you have elvis-tools installed . remove them with something like
sudo apt-get remove elvis-tools
and then install exuberant-ctags by
sudo apt-get install exuberant-ctags