commit 0b3b8f78331b14956fbc54d9b00d5bbad96ebea5
parent c8b54dc91a1b14ca1fad8f0735668c695f083962
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Thu, 16 Feb 2012 16:11:44 +0000
add NERDTreeFocus function
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git 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