From b6650b7a2f348ff2a1dc227e54542eca872017c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 13 Jun 2019 08:35:07 +0100 Subject: [PATCH] Do not show nerdtree startup complaints --- .vimrc.plugins-settings | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vimrc.plugins-settings b/.vimrc.plugins-settings index 59c9599b..02f48376 100644 --- a/.vimrc.plugins-settings +++ b/.vimrc.plugins-settings @@ -16,7 +16,7 @@ let g:ctrlp_show_hidden = 1 let g:lsp_signs_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 -" nerdtree startup -autocmd StdinReadPre * let s:std_in=1 -autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif +let NERDTreeWinSize = 25 +autocmd StdinReadPre * silent! let s:std_in=1 +autocmd VimEnter * silent! f argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif