nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit a53649860192934a4874440f0e9469a95f87af58
parent fa57b8128ddb9df4b3bc0d9953f26f117f71bf6a
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date:   Thu, 22 Sep 2016 15:27:39 -0400

Merge pull request #593 from therealplato/docs/boot-other-window

[docs] faq: how to start with open nerdtree but main window focused
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):