map <cr> to the default o mapping (again)
this was broken in one of the recent "epic refactor" commits
This commit is contained in:
parent
e5682d3948
commit
20f7ab8ade
@ -2864,7 +2864,6 @@ function! s:createDefaultBindings()
|
|||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "FileNode", 'callback': s."activateFileNode" })
|
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': "Bookmark", 'callback': s."activateBookmark" })
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "all", 'callback': s."activateAll" })
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "all", 'callback': s."activateAll" })
|
||||||
exec "nnoremap <silent> <buffer> <cr> :call <SID>KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')<cr>"
|
|
||||||
|
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenSplit, 'scope': "Node", 'callback': s."openHSplit" })
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenSplit, 'scope': "Node", 'callback': s."openHSplit" })
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenVSplit, 'scope': "Node", 'callback': s."openVSplit" })
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenVSplit, 'scope': "Node", 'callback': s."openVSplit" })
|
||||||
@ -3942,6 +3941,9 @@ endfunction
|
|||||||
|
|
||||||
"FUNCTION: s:bindMappings() {{{2
|
"FUNCTION: s:bindMappings() {{{2
|
||||||
function! s:bindMappings()
|
function! s:bindMappings()
|
||||||
|
"make <cr> do the same as the default 'o' mapping
|
||||||
|
exec "nnoremap <silent> <buffer> <cr> :call <SID>KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')<cr>"
|
||||||
|
|
||||||
call s:KeyMap.BindAll()
|
call s:KeyMap.BindAll()
|
||||||
|
|
||||||
command! -buffer -nargs=? Bookmark :call <SID>bookmarkNode('<args>')
|
command! -buffer -nargs=? Bookmark :call <SID>bookmarkNode('<args>')
|
||||||
|
Loading…
Reference in New Issue
Block a user