add NERDTreeFocus function
This commit is contained in:
parent
c8b54dc91a
commit
0b3b8f7833
@ -3254,6 +3254,14 @@ function! NERDTreeRender()
|
|||||||
call s:renderView()
|
call s:renderView()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! NERDTreeFocus()
|
||||||
|
if s:isTreeOpen()
|
||||||
|
call s:putCursorInTreeWin()
|
||||||
|
else
|
||||||
|
call s:toggle("")
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
" SECTION: View Functions {{{1
|
" SECTION: View Functions {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
"FUNCTION: s:centerView() {{{2
|
"FUNCTION: s:centerView() {{{2
|
||||||
|
Loading…
Reference in New Issue
Block a user