2

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

Community
  • 1
  • 1
Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42

1 Answers1

3

I think, you can do something like this:

if argc() == 0
    augroup MyVimEnter
     au!
     au VimEnter * ... " put the plugin command here
    augroup END
endif
Christian Brabandt
  • 8,038
  • 1
  • 28
  • 32