Skip to content

Instantly share code, notes, and snippets.

@alex-cory
Created April 9, 2014 10:17
Show Gist options
  • Save alex-cory/10251197 to your computer and use it in GitHub Desktop.
Save alex-cory/10251197 to your computer and use it in GitHub Desktop.
Automatic Nerd Tree startup
" 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