VIM ctags setup ack

阅读更多
reference

ctags --extra=+f --exclude=.git --exclude=log --exclude=coverage --exclude=public/assets -R *  /home/ken/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/*


ctags --extra=+f --exclude=.git --exclude=log --exclude=coverage --exclude=public/assets -R * `rvm gemdir`/gems/*

再再更新:2012/10/8
ubuntu下Ack 被覆盖问题
sudo ln -s /usr/bin/ack-grep /usr/local/bin/ack

再更新:2012/07/28
1. mac下ctags错误提示
2. 手册地质
http://vim-taglist.sourceforge.net/manual.html
严重更新
MAC的用户,FuzzyFinder,推荐用peepopen去peepcode看或者github和textmate的command t很像
而且,brew install macvim很有必要,因为直接支持ruby运行
3.
引用
highlight group not found: Normal

#.vimrc
colorscheme default


sudo aptitude remove vim
sudo aptitude install vim-rails
#in order to get vim-rails support

git clone git://github.com/astrails/dotvim.git
ln -sfn dotvim .vim
ln -sfn dotvim/vimrc .vimrc
cd .vim; make install


If you got error like below:
引用
'Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.'


sudo aptitude install exuberant-ctags


sharpair:~$ /usr/bin/ctags
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
sharpair:~$ /usr/local/bin/ctags
ctags: No files specified. Try "ctags --help".
sharpair:~$ which ctags
/usr/local/bin/ctags
sharpair:~$ ctags
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
sharpair:~$ 


VIM ctags setup ack_第1张图片
When I try to open the taglist window, I am seeing the following error message. How do I fix this problem?

引用
   Taglist: Failed to generate tags for /my/path/to/file
   ctags: illegal option -- -^@usage: ctags [-BFadtuwvx] [-f tagsfile] file ...


The taglist plugin will work only with the exuberant ctags tool. You cannot use the GNU ctags or the Unix ctags program with the taglist plugin. You will see an error message similar to the one shown above, if you try use a non-exuberant ctags program with Vim. To fix this problem, either add the exuberant ctags tool location to the PATH environment variable or set the Tlist_Ctags_Cmd variable.
#mac下面要brew一个新的ctags,如果提示旧的ctags有问题的话
hash -d ctags


#如果要用ctrl ]来查gem里的方法,还需要ctags准备taglist
map rt :!ctags --extra=+f --exclude=.git --exclude=log -R * `rvm gemdir`/gems/*

map rt :!ctags --extra=+f --exclude=.git --exclude=log -R * `gem environment gemdir`/gems/*
#只是查bundle的gem
map  rt :!bundle list --paths=true \| xargs ctags --extra=+f --exclude=.git --exclude=log -R * 




#.vimrc
 set fileformat=unix
 let Tlist_Ctags_Cmd='/usr/local/bin/ctags'


if you need make sure
rvm use system


modify your ~/.vim/Makefile


PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM 

  • VIM ctags setup ack_第2张图片
  • 大小: 212.2 KB
  • 查看图片附件

你可能感兴趣的:(vim,aptitude,ruby,ack)