When using Vim you can use
:Explore to browser through files and folders.
Is there a simple way to start Vim in "Explore mode" from the terminal? Can I do this by just giving Vim some argument?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
Alternatively (the passing of directory argument(s) as in @EvergreenTree's answer relies on the autocmds of the netrw plugin, and aren't a general solution), you can pass any Ex command to Vim on startup via the
$ vim -c Explore
You can also use
+, which is exactly the same as
-c, except slightly shorter:
$ vim +Explore
Then the following will allow you to simply type gvim (by itself) and get a browser display showing:
augroup VimStartup au! au VimEnter * if expand("%") == "" && argc() == 0 && (v:servername =~ 'GVIM\d*' || v:servername == "") | e . | endif augroup END
(put this into your .vimrc)