diff --git a/README.markdown b/README.markdown index 5debfa9..f4ca860 100644 --- a/README.markdown +++ b/README.markdown @@ -91,11 +91,13 @@ Stick this in your vimrc: `autocmd vimenter * NERDTree` > How can I open a NERDTree automatically when vim starts up if no files were specified? -Stick this in your vimrc +Stick this in your vimrc: autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +Note: Now start vim with plain `vim`, not `vim .` + > 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):