我从https://github.com/b4winckler/macvim/downloads下载了一个 macvim 快照 64,并通过以下方式安装了 exuberant ctags homebrew
:
which ctags
/usr/local/bin/ctags
我tags
在 vim 中的变量如下所示:
:echo &tags
/Users/macovsky/code/faces/tmp/tags,./tags,tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/code/faces/tags
rails-vim
我用's:Rtags
命令生成了标签文件:
file tmp/tags
tmp/tags: Exuberant Ctags tag file text
问题是无论我使用C-]
还是:tag
全部失败并出现E426 tag not found
错误。
标签肯定在那里:
cat tmp/tags | grep post_image
post_image /Users/macovsky/code/faces/app/helpers/posts_helper.rb /^ def post_image(post, style)$/;" f class:PostsHelper
有什么建议么?谢谢你。