Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add NERDTreeFocus function

  • Loading branch information...
commit 0b3b8f78331b14956fbc54d9b00d5bbad96ebea5 1 parent c8b54dc
Martin Grenfell authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugin/NERD_tree.vim
8 plugin/NERD_tree.vim
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.