运行命令行Vim命令 [英] Run vim command from commandline
本文介绍了运行命令行Vim命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有很多从VIM运行shell程序SO问题。我想知道是,如果有可能做相反 - 即
There are lots of SO questions on running shell programs from vim. What I'm wondering is if it is possible to do the reverse - i.e.
$ vim :BundleInstall
例如,让我跑 BundleInstall 作为脚本的一部分,而不是打开Vim并手动运行在第一次运行?这可能吗?
for example, to allow me to run BundleInstall as part of a script, rather than having to open Vim and run it manually on first running? Is this possible?
推荐答案
请注意,现在的语法已经改变,该行应为(按的 @ sheharyar ):
Note, now the syntax has changed, and the line should read (As per @sheharyar):
vim +PluginInstall +qall
有关后人,previously,正确的路线是:
For posterity, previously, the correct line was:
vim +BundleInstall +qall
应该比我其他任何人看!注:这是在vundle的 Github上自述
这篇关于运行命令行Vim命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文