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