diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 1550120..38fd722 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2552,7 +2552,7 @@ function! s:BindMappings() exec "nnoremap ". g:NERDTreeMapOpenExpl ." :call OpenExplorer()" command! -buffer -nargs=1 Mark :call MarkNode('') - command! -buffer -complete=customlist,s:FindMarks -nargs=1 RecallMark :call RecallMark('') + command! -buffer -complete=customlist,s:FindMarks -nargs=1 RevealMark :call RevealMark('') command! -buffer -complete=customlist,s:FindMarks -nargs=1 OpenMark :call OpenMark('') command! -buffer -complete=customlist,s:FindMarks -nargs=* ClearMarks call ClearMarks('') command! -buffer -complete=customlist,s:FindMarks -nargs=+ MarkToRoot call MarkToRoot('') @@ -3040,9 +3040,9 @@ function! s:PreviewNode(openNewWin) call s:PutCursorInTreeWin() endfunction -" FUNCTION: s:RecallMark(name) {{{2 +" FUNCTION: s:RevealMark(name) {{{2 " put the cursor on the node associate with the given name -function! s:RecallMark(name) +function! s:RevealMark(name) try let targetNode = s:GetNodeForMark(a:name, 0) call s:PutCursorOnNode(targetNode, 0, 1)