Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I exclude files and directories from a project in vim (using janus)?

I'm moving from Textmate to vim (with janus) and want to exclude some directories from Ack in particular, and also NERDTree.

The reason I want to do this is that Ack is useless (takes minutes to run, and produces no results) with one of my large projects which contains a directory full of marshalled db data (with many subdirectories and hundreds of thousands of files).

I know how to exclude files (not directories) from NERDTree, and also exclude patterns from CommandT. Neither of these solve my Ack issue.

I'm a complete vim n00b. Thanks for reading.

like image 950
i2w Avatar asked Jun 27 '11 09:06

i2w


1 Answers

By default, ack only checks your ~/.ackrc file for it’s default switches. You can have per directory ack settings if you add this to your .bash_profile:

export ACKRC=".ackrc"

http://www.rustyrazorblade.com/2012/03/making-better-use-of-your-ackrc-file/

like image 179
philfreo Avatar answered Oct 11 '22 10:10

philfreo