Is there an equivalent/workaround to the -c command line parameter of vim that executes a given command after all files have been loaded? My use case is to load multiple files in vim and show the buffer explorer list on startup.
Use the VimEnter autocommand. See :help VimEnter.
In your .vimrc:
au VimEnter * <call the bufexplorer function here>
Or specify it from the command line:
$ vi *.c -c "au VimEnter * BufExplorer"
If you use it often enough make an alias for it (assuming that you're using unix):
$ alias vib='vi -c "au VimEnter * BufExplorer"'
$ vib *.c
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With