Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wildignore makes problems for fugitive.vim #19

Closed
graudeejs opened this issue Oct 19, 2011 · 2 comments
Closed

wildignore makes problems for fugitive.vim #19

graudeejs opened this issue Oct 19, 2011 · 2 comments

Comments

@graudeejs
Copy link

set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*.so

Is a bad idea, It breaks fugitive plugin.
A much better is to simply

let g:ctrlp_user_command = "find %s -type f | egrep -v '/\.(git|hg|svn)/' | egrep -v '\.(swp|swo|log|gitkep|keepme|so|o)$'"

This is very fast and it will filter all directories and files, that you really don't want to find without breaking fugitive.

Perhaps some info about this in help and/or from page should be added

Otherwise this is great plugin.

@kien
Copy link
Owner

kien commented Oct 19, 2011

Thank you! I'll add a note to the doc about this.

@kien kien closed this as completed Oct 19, 2011
@graudeejs
Copy link
Author

BRW, I've been tuning my g:ctrlp_user_command setting

and here's what I came up with

let g:ctrlp_max_depth = 20
let g:ctrlp_user_command = "find %s '(' -type f -or -type l ')' -maxdepth " . g:ctrlp_max_depth . " -not -path '*/\.*/*' | egrep -v '\.(swp|swo|log|gitkeep|keepme|so|o)$'"

This one won't search hidden directories at all, however it will search for files and links

nfvs pushed a commit to nfvs/ctrlp.vim that referenced this issue Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants