Skip to content

Instantly share code, notes, and snippets.

@rickarubio
Created March 27, 2015 03:52
Show Gist options
  • Save rickarubio/43d5dab75ee84011f2f6 to your computer and use it in GitHub Desktop.
Save rickarubio/43d5dab75ee84011f2f6 to your computer and use it in GitHub Desktop.
Open directory in vim or mvim with a blank buffer
" Add this to your .vimrc
if isdirectory(argv(0))
bd
autocmd vimenter * exe "cd" argv(0)
autocmd VimEnter * NERDTree
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment