From 1784de15dd3e45eb6415bbe6505c00a7221d7f44 Mon Sep 17 00:00:00 2001 From: Lucas Caton Date: Tue, 8 Jul 2014 10:57:39 +1000 Subject: [PATCH 1/2] Updating creator.vim file (this fixes #352) --- lib/nerdtree/creator.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim index b80709e..090bc04 100644 --- a/lib/nerdtree/creator.vim +++ b/lib/nerdtree/creator.vim @@ -8,7 +8,7 @@ let g:NERDTreeCreator = s:Creator "FUNCTION: s:Creator._bindMappings() {{{1 function! s:Creator._bindMappings() "make do the same as the activate node mapping - nnoremap :call nerdtree#invokeKeyMap(g:NERDTreeMapActivateNode) + nnoremap :call nerdtree#ui_glue#invokeKeyMap(g:NERDTreeMapActivateNode) call g:NERDTreeKeyMap.BindAll() From eaa66aaf630bee59c71d5c1a22bcde36e18bc4ca Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 8 Jul 2014 09:44:41 +0100 Subject: [PATCH 2/2] fix the NERDTreeFind command - broken in recent refactoring --- autoload/nerdtree/ui_glue.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/nerdtree/ui_glue.vim b/autoload/nerdtree/ui_glue.vim index 715c929..0209472 100644 --- a/autoload/nerdtree/ui_glue.vim +++ b/autoload/nerdtree/ui_glue.vim @@ -550,7 +550,7 @@ function! nerdtree#ui_glue#setupCommands() command! -n=0 -bar NERDTreeClose :call nerdtree#closeTreeIfOpen() command! -n=1 -complete=customlist,nerdtree#completeBookmarks -bar NERDTreeFromBookmark call g:NERDTreeCreator.CreatePrimary('') command! -n=0 -bar NERDTreeMirror call g:NERDTreeCreator.CreateMirror() - command! -n=0 -bar NERDTreeFind call nerdtree#ui_glue#findAndRevealPath() + command! -n=0 -bar NERDTreeFind call s:findAndRevealPath() command! -n=0 -bar NERDTreeFocus call NERDTreeFocus() command! -n=0 -bar NERDTreeCWD call NERDTreeCWD() endfunction