Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Vim/MacVim equivalent for TextMate's Find in Project?

Tags:

vim

macvim

I was using TextMate now I am using MacVim, the only thing I miss from TextMate is the "Find in Project" functionality, is there any Vim plugin providing this functionality?

like image 592
rodrigoalvesvieira Avatar asked Apr 27 '11 20:04

rodrigoalvesvieira


4 Answers

I think EasyGrep might do most of what you are looking for. It does a extension sensitive search of the current directory on down.

I use it a lot for finding things in projects.

like image 194
Dennis Hostetler Avatar answered Nov 14 '22 08:11

Dennis Hostetler


I think Project.vim lets you search in its "project" but I never really liked the idea of having several files from different parts of my filesystem magically grouped in a virtual project.

If — like me — all the files of your project happen to be in the same "real" folder Ack.vim and EasyGrep.vim both work very well.

LustyExplorer is also very good for searching in buffers.

like image 29
romainl Avatar answered Nov 14 '22 07:11

romainl


I've been using ack.vim to do this.

You may need to install ack beforehand unless you already have it installed. There are installation instructions on the vim-scripts page, but here's what I did (I don't use macports):

curl http://betterthangrep.com/ack-standalone > /tmp/ack
sudo mv /tmp/ack /usr/local/bin/ack
sudo chmod 0755 /usr/local/bin/ack

Which I have in a setup file for my vim configs here.

like image 27
Bill Turner Avatar answered Nov 14 '22 08:11

Bill Turner


I have not used TextMate, but going through their manual, I believe one of these plugins is what you're looking for

  • NERD tree
  • Fuzzy finder
  • Lusty explorer

I personally use NERD tree and Fuzzy finder and they're both phenomenal! Do give them a try.

like image 2
abcd Avatar answered Nov 14 '22 08:11

abcd