From bcc690a1416b518db6606bbe22c6a7518b528781 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 9 Jun 2008 13:01:48 +1200 Subject: [PATCH] put cursor on the tree root by default --- plugin/NERD_tree.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 9a6e967..048303f 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1449,6 +1449,7 @@ function! s:InitNerdTree(dir) call s:CreateTreeWin() call s:RenderView() + call s:PutCursorOnNode(t:NERDTreeRoot, 0, 0) endfunction "FUNCTION: s:InitNerdTreeFromMark(name) {{{2