rename NERDTreeWildIgnore option and refactor the usage of it

Rename it to the more intention revealing NERDTreeRespectWildIgnore.

Use it directly in the `globpath()` call rather than surrounding if
statement. Its subjective, but I find this clearer.

Add an initializer for the option.
This commit is contained in:
Martin Grenfell
2014-06-26 10:01:15 +01:00
parent 186abb84c1
commit 8b48413155
3 changed files with 5 additions and 4 deletions

View File

@@ -635,7 +635,7 @@ NERD tree. These options should be set in your vimrc.
|'NERDTreeIgnore'| Tells the NERD tree which files to ignore.
|'NERDTreeWildIgnore'| Tells the NERD tree to respect |'wildignore'|.
|'NERDTreeRespectWildIgnore'| Tells the NERD tree to respect |'wildignore'|.
|'NERDTreeBookmarksFile'| Where the bookmarks are stored.
@@ -827,7 +827,7 @@ The file filters can be turned on and off dynamically with the |NERDTree-f|
mapping.
------------------------------------------------------------------------------
*'NERDTreeWildIgnore'*
*'NERDTreeRespectWildIgnore'*
Values: 0 or 1.
Default: 0.