mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
fix the <enter> mapping
It now acts the same as the ActivateNode mapping ('o' by default) again.
This was broken in the big refactor.
Fixes #222
This commit is contained in:
@@ -1228,11 +1228,11 @@ endfunction
|
|||||||
|
|
||||||
"FUNCTION: nerdtree#bindMappings() {{{2
|
"FUNCTION: nerdtree#bindMappings() {{{2
|
||||||
function! nerdtree#bindMappings()
|
function! nerdtree#bindMappings()
|
||||||
"make <cr> do the same as the default 'o' mapping
|
|
||||||
exec "nnoremap <silent> <buffer> <cr> :call <SID>KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')<cr>"
|
|
||||||
|
|
||||||
call g:NERDTreeKeyMap.BindAll()
|
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>"
|
||||||
|
|
||||||
command! -buffer -nargs=? Bookmark :call <SID>bookmarkNode('<args>')
|
command! -buffer -nargs=? Bookmark :call <SID>bookmarkNode('<args>')
|
||||||
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call <SID>revealBookmark('<args>')
|
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call <SID>revealBookmark('<args>')
|
||||||
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call <SID>openBookmark('<args>')
|
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call <SID>openBookmark('<args>')
|
||||||
|
|||||||
Reference in New Issue
Block a user