VIM: Open netrw on startup or open files provided

Viewed 1235

I've added a little quality-of-life improvement to the .vimrc which invokes netrw @ startup, namely:

augroup ProjectDrawer
  autocmd!
  autocmd VimEnter * :Explore!
augroup END

Works like a charm, however this interferes with invoking vim to edit a particular file vim file_foo (I end up with netrw not with file_foo).

How can I modify my .vimrc to e.g. invoke ProjectDrawer when there were no arguments to the vim on invocation (vim), otherwise open provided files (vim file_foo)?

1 Answers
Related