add NERDTreeFocus function

This commit is contained in:
Martin Grenfell 2012-02-16 16:11:44 +00:00
parent c8b54dc91a
commit 0b3b8f7833

View File

@ -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