vimrc - How does gvim automatically run a command in command mode at startup?
phpcn_u1582
phpcn_u1582 2017-05-16 16:34:33
0
2
645

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

What should I do?

phpcn_u1582
phpcn_u1582

reply all(2)
Ty80

: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

我想大声告诉你

Add colon

:MRU
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!