Heim  >  Fragen und Antworten  >  Hauptteil

vimrc – Wie führt gvim beim Start automatisch einen Befehl im Befehlsmodus aus?

Ich möchte, dass GVIM beim Start automatisch ausgeführt wird:MRU命令(此命令开启MRU插件)。但是直接写入vimrcIch erhalte eine Fehlermeldung

Was soll ich tun?

phpcn_u1582phpcn_u15822712 Tage vor640

Antworte allen(2)Ich werde antworten

  • PHP中文网

    PHP中文网2017-05-16 16:36:33

    :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

    你应该这么写: autocmd! GUIEnter * :MRU

    Antwort
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 16:36:33

    把冒号加上

    :MRU

    Antwort
    0
  • StornierenAntwort