Skip to content

Instantly share code, notes, and snippets.

@wayt
Created July 21, 2016 13:38
Show Gist options
  • Save wayt/1de4b95f79ead3f455f778d9882fda0c to your computer and use it in GitHub Desktop.
Save wayt/1de4b95f79ead3f455f778d9882fda0c to your computer and use it in GitHub Desktop.
# Open NERDTree if no file supplied at vim startup
function! StartUp()
if 0 == argc()
NERDTree
end
endfunction
autocmd VimEnter * call StartUp()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment