diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index 016a5dc..b7b7d8f 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -100,7 +100,7 @@ function! s:TreeDirNode.displayString() let l:cascade = self.getCascade() for l:dirNode in l:cascade let l:next = l:dirNode.path.displayString() - let l:label .= l:label == '' ? l:next : strcharpart(l:next,1) + let l:label .= l:label == '' ? l:next : substitute(l:next,'^.','','') endfor " Select the appropriate open/closed status indicator symbol. diff --git a/syntax/nerdtree.vim b/syntax/nerdtree.vim index dddce6d..172806b 100644 --- a/syntax/nerdtree.vim +++ b/syntax/nerdtree.vim @@ -39,7 +39,7 @@ syn match NERDTreeFlags #\[.\]# containedin=NERDTreeDir "highlighing to conceal the delimiter around the file/dir name if has("conceal") exec 'syn match NERDTreeNodeDelimiters #' . g:NERDTreeNodeDelimiter . '# conceal containedin=NERDTreeFile,NERDTreeLinkFile,NERDTreeExecFile,NERDTreeRO,NERDTreeDir' - setlocal conceallevel=2 concealcursor=nvic + setlocal conceallevel=3 concealcursor=nvic else exec 'syn match NERDTreeNodeDelimiters #' . g:NERDTreeNodeDelimiter . '# containedin=NERDTreeFile,NERDTreeLinkFile,NERDTreeExecFile,NERDTreeRO,NERDTreeDir' hi! link NERDTreeNodeDelimiters Ignore