diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index b8b894b..e11bbeb 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3254,6 +3254,14 @@ function! NERDTreeRender() call s:renderView() endfunction +function! NERDTreeFocus() + if s:isTreeOpen() + call s:putCursorInTreeWin() + else + call s:toggle("") + endif +endfunction + " SECTION: View Functions {{{1 "============================================================ "FUNCTION: s:centerView() {{{2