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