My ctaglist plugin stopped working after I migrated to my new MacBook Pro 13". After playing with it for a few minutes, I realized that my default ctags cmd is not correct. To have your ctaglist working, you have to use Exuberant Ctags. I am hoping this could save you some time for looking for the answer.
$> wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz
$> tar zxvf ctags-5.8.tar.gz
$> cd ctags-5.8
$> ./configure && make && sudo make install
You probably have to copy it over the old one if you not set the $PATH on you Mac( there is a ctags under /usr/bin)
$> sudo cp ctags /usr/bin/.
That's it, start you Vim, you are ready to go.
Showing posts with label Vim. Show all posts
Showing posts with label Vim. Show all posts
Aug 17, 2009
Dec 22, 2008
Integrate Ack with Vim
I've been a long time Vim user, but the searching in a project is the missing part in Vim compare to TextMate. I used to switch to a command line using 'grep' or 'rak'(a ruby gem). Finally there is good tip how to integrate it into vim: Ack plugin for Vim
Here is how I do it on my Mac:
1. Install File-Next
2. Install ack
3. Edit your vimrc, add:
set grepprg=ack
4. Create a ack.vim in your .vim/plugin/
Fire up your vim:
:Ack text_to_search_in_current_path
Here is how I do it on my Mac:
1. Install File-Next
2. Install ack
3. Edit your vimrc, add:
set grepprg=ack
4. Create a ack.vim in your .vim/plugin/
Fire up your vim:
:Ack text_to_search_in_current_path
Subscribe to:
Posts (Atom)