mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
map '<CR>' to the same as 'o'
This commit is contained in:
parent
c726655d23
commit
3796a8799a
|
@ -211,6 +211,7 @@ x.......Close the current nodes parent...........................|NERDTree-x|
|
|||
X.......Recursively close all children of the current node.......|NERDTree-X|
|
||||
e.......Edit the current dif.....................................|NERDTree-e|
|
||||
|
||||
<CR>...............same as |NERDTree-o|.
|
||||
double-click.......same as the |NERDTree-o| map.
|
||||
middle-click.......same as |NERDTree-i| for files, same as
|
||||
|NERDTree-e| for dirs.
|
||||
|
|
|
@ -2404,6 +2404,7 @@ function! s:dumpHelp()
|
|||
let @h=@h."\" ============================\n"
|
||||
let @h=@h."\" File node mappings~\n"
|
||||
let @h=@h."\" ". (g:NERDTreeMouseMode ==# 3 ? "single" : "double") ."-click,\n"
|
||||
let @h=@h."\" <CR>,\n"
|
||||
if b:NERDTreeType ==# "primary"
|
||||
let @h=@h."\" ". g:NERDTreeMapActivateNode .": open in prev window\n"
|
||||
else
|
||||
|
@ -3059,6 +3060,7 @@ function! s:bindMappings()
|
|||
|
||||
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapActivateNode . " :call <SID>activateNode(0)<cr>"
|
||||
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenSplit ." :call <SID>openEntrySplit(0,0)<cr>"
|
||||
exec "nnoremap <silent> <buffer> <cr> :call <SID>activateNode(0)<cr>"
|
||||
|
||||
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapPreview ." :call <SID>previewNode(0)<cr>"
|
||||
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapPreviewSplit ." :call <SID>previewNode(1)<cr>"
|
||||
|
|
Loading…
Reference in New Issue
Block a user