vimrc - How does gvim automatically run a command in command mode at startup?
phpcn_u15822017-05-16 16:34:33
0
2
709
I want GVIM to automatically run the :MRU command when it starts (this command turns on the MRU plug-in). But when writing vimrc directly, an error occurs
*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
:help GUIEnter
You should write like this:
autocmd! GUIEnter * :MRU
Add colon