Mac下使用VIM+Taglist+Ctags

一直觉得换成Mac之后ctags就不是很好用了,结果今天终于被要读的一堆代码搞烦了于是Google了一下...
果然真理越搜越明!

在这边: http://vim-taglist.sourceforge.net/faq.html

Are you using exuberant ctags version 5.0 and above?
The taglist plugin relies on the features supported by exuberant ctags and will not work with GNU ctags or the Unix ctags utility. You can use the following command to determine whether the ctags installed in your system is exuberant ctags:
$ ctags --version

然后google了一下,目前觉得Mac下最方便的解决方案还是用homebrew

$ brew install ctags

$ /usr/local/bin/ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jan 16 2013, 15:28:06
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

$ echo "let g:Tlist_Ctags_Cmd='/usr/local/bin/ctags'" >>~/.vimrc

就这么多。

 

本文网址:http://blog.perlfect.me/2013/01/16/vim-ctags-on-mac.html

comments powered by Disqus