From 14c895099fd407f32622e64f0f80e211bbf9a811 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Wed, 28 Oct 2015 20:24:52 +0100 Subject: [PATCH] Auto Nerdtree without any files to open --- vim/.vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 9d774ce..390a445 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -110,6 +110,8 @@ let g:SuperTabNoCompleteAfter = ['^',',','\s'] "NERDTree tabs nmap e :NERDTreeToggle +autocmd StdinReadPre * let s:std_in=1 +autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif "EasyMotion map / (easymotion-sn)