I have found myself falling into a workflow where I'm often starting vim by running
$ vim and then opening up the most recent file once inside.
I was wondering how to detect:
- when vim is launched
- which files it was launched with
so that in the case when no files are specified, I can run a custom command (such as opening the most recent file).