mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
add NERDTreeFocus function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user