Created
April 9, 2014 10:17
-
-
Save alex-cory/10251197 to your computer and use it in GitHub Desktop.
Automatic Nerd Tree startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Only open nerdtree if no file was specified on startup | |
function! StartUpNerdtree() | |
if 0 == argc() | |
NERDTree | |
end | |
endfunction | |
autocmd VimEnter * call StartUpNerdtree() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment