nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 9a341ec18f631e58398350cc9665b8ec4d50954d
parent f93d2c79e5b99f8c7326bfc6bb940fed1212c6a1
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Tue,  9 Apr 2013 10:10:14 +0100

fix a bug where the user couldnt override the mapping for <cr>

Diffstat:
Mplugin/nerdtree/creator.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/nerdtree/creator.vim b/plugin/nerdtree/creator.vim
@@ -7,11 +7,11 @@ let g:NERDTreeCreator = s:Creator
 
 "FUNCTION: s:Creator._bindMappings() {{{1
 function! s:Creator._bindMappings()
-    call g:NERDTreeKeyMap.BindAll()
-
     "make <cr> do the same as the default 'o' mapping
     exec "nnoremap <silent> <buffer> <cr> :call nerdtree#invokeKeyMap('". g:NERDTreeMapActivateNode ."')<cr>"
 
+    call g:NERDTreeKeyMap.BindAll()
+
     command! -buffer -nargs=? Bookmark :call nerdtree#bookmarkNode('<args>')
     command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call nerdtree#revealBookmark('<args>')
     command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call nerdtree#openBookmark('<args>')