Permalink
Browse files

Only change directory if arg is a directory

  • Loading branch information...
1 parent 56ebf95 commit aff37146d78e1589e07e67fd6ffd6768175d8e08 Blake Williams committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .vimrc
View
2 .vimrc
@@ -48,9 +48,9 @@ endif
if has("autocmd")
" If the first arg is a directory, open up nerdtree
- autocmd vimenter * exe "cd" argv(0)
if isdirectory(argv(0))
bd
+ autocmd vimenter * exe "cd" argv(0)
autocmd VimEnter * NERDTree
endif

0 comments on commit aff3714

Please sign in to comment.