Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在这个问题中尝试了建议:Vim - 如何在启动 vim 时立即运行命令?
每次调用 vim 时都会执行命令,
我希望仅在我调用 vim 时才打开 MRU 插件,而无需打开任何文件
我认为,您可以执行以下操作:
if argc() == 0 augroup MyVimEnter au! au VimEnter * ... " put the plugin command here augroup END endif