开发者

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 t开发者_运维百科o 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.


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/


For NerdTree, use NERDTreeIgnore setting.

as for Ack - you can set --ignore-dir flag in your .ackrc (as explained in Ack's man page)


I only had to create a .ackrc in my top directory with the following:

--ignore-dir=log/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜