commit 4cb97629991fcfe83e35ec4e0e347b71617009ab parent f26eaf83551631e683e339f00e2c97bd6e8356d7 Author: Ggicci <ggicci@163.com> Date: Sun, 9 Oct 2016 15:11:27 +0800 Update readme, trick to avoid hiding nerdtree after first file open. Diffstat:
| M | README.markdown | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/README.markdown b/README.markdown @@ -100,6 +100,11 @@ Stick this in your vimrc: Note: Now start vim with plain `vim`, not `vim .` +Or use the following directives if you prefer using `vim .`: + + autocmd StdinReadPre * let s:std_in=1 + autocmd VimEnter * if argc() == 1 && argv()[0] == '.' && !exists("s:std_in") | NERDTree | wincmd p | ene | endif + --- > How can I open NERDTree on startup, and have my cursor start in the other window?
