From 20f7ab8adec793db96e551de742f7b4f04f4bcd5 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 11 Jan 2012 20:03:56 +0000 Subject: [PATCH] map to the default o mapping (again) this was broken in one of the recent "epic refactor" commits --- plugin/NERD_tree.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 685f9d1..cbe5cc0 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2864,7 +2864,6 @@ function! s:createDefaultBindings() call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "FileNode", 'callback': s."activateFileNode" }) call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "Bookmark", 'callback': s."activateBookmark" }) call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "all", 'callback': s."activateAll" }) - exec "nnoremap :call KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')" call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenSplit, 'scope': "Node", 'callback': s."openHSplit" }) call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenVSplit, 'scope': "Node", 'callback': s."openVSplit" }) @@ -3942,6 +3941,9 @@ endfunction "FUNCTION: s:bindMappings() {{{2 function! s:bindMappings() + "make do the same as the default 'o' mapping + exec "nnoremap :call KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')" + call s:KeyMap.BindAll() command! -buffer -nargs=? Bookmark :call bookmarkNode('')