Reputation: 2811
I tried suggestions in this question: Vim - how to run a command immediately when starting vim?
command gets executed everytime vim is invoked,
I want MRU plugin to be opened only when I'm invoking vim without any files to open
Upvotes: 2
Views: 91
Reputation: 8248
I think, you can do something like this:
if argc() == 0
augroup MyVimEnter
au!
au VimEnter * ... " put the plugin command here
augroup END
endif
Upvotes: 3