How does gvim automatically run a command in command mode at startup?

  question, vim

I want GVIM to run automatically when it starts up:MRUCommand (this command opensMRU plug-in)。 But direct writingvimrcWhen reporting an error

clipboard.png

clipboard.png

What do I have to do?

:help GUIEnter

*GUIEnter*
 GUIEnter            After starting the GUI successfully, and after
 opening the window.  It is triggered before
 VimEnter when using gvim.  Can be used to
 position the window from a .gvimrc file: >
 :autocmd GUIEnter * winpos 100 50

You should write like this:autocmd! GUIEnter * :MRU