diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 46189a8..624d0de 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -563,7 +563,9 @@ function! s:oTreeDirNode.InitChildren(silent) dict let invalidFilesFound = 0 for i in files - "filter out the .. and . directories + "filter out the .. and . directories + "Note: we must match .. AND ../ cos sometimes the globpath returns + "../ for path with strange chars (eg $) if i !~ '\.\..\?$' && i !~ '\..\?$' "put the next file in a new node and attach it