nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 0ef5b6be4f3e7106faa07a804b6e29a07bfa65a3
parent 2e2b649232d6ae4d02d74793e5da0ee08480ad8d
Author: Isaac Rogers <therealplato@gmail.com>
Date:   Mon, 27 Jun 2016 19:11:07 -0400

Add FAQ: how to unfocus nerdtree window on start
Diffstat:
MREADME.markdown | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/README.markdown b/README.markdown
@@ -102,6 +102,16 @@ Stick this in your vimrc:
 Note: Now start vim with plain `vim`, not `vim .`
 
 ---
+> How can I open NERDTree on startup, and have my cursor start in the other window?
+
+Stick this in your vimrc:
+
+    autocmd vimenter * NERDTree
+    autocmd vimenter * wincmd p
+
+ *via [stackoverflow/Yohann](http://stackoverflow.com/questions/4277808/nerdtree-auto-focus-to-file-when-opened-in-new-tab/19330023#19330023)*
+ 
+---
 > How can I map a specific key or shortcut to open NERDTree?
 
 Stick this in your vimrc to open NERDTree with `Ctrl+n` (you can set whatever key you want):