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

Ignore pattern is not distinguish file and directory #85

Closed
abadcafe opened this issue Aug 9, 2011 · 1 comment
Closed

Ignore pattern is not distinguish file and directory #85

abadcafe opened this issue Aug 9, 2011 · 1 comment

Comments

@abadcafe
Copy link

abadcafe commented Aug 9, 2011

sometimes it will confuse.

for example, '.d' file is generated by gcc and nobody is glad to edit them. but many directories in /etc are end with '.d' too.

I suggest use two patterns to deal with this case: '.d$' for files, and '.d/$' for directories.

@scrooloose
Copy link
Collaborator

Just pushed a commit to handle this.

See :help NERDTreeIgnore for details, but long story short:

if you have '.d$[[dir]]' it will match only dir nodes, and 'foobar[[file]]' will match only file nodes.

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