If you want to do this just for calling vim, the best way is to use argc() :
autocmd VimEnter * :if argc() is 0 | Explore | endif
Function
argc() returns the number of file names specified on the command line when calling vim, unless something else is changed, more information is in :h argc() .
source share