如何从shell命令行运行vim命令? [英] How to run a vim command from the shell command-line?
本文介绍了如何从shell命令行运行vim命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有很多关于从 vim
内部运行shell程序的问题.是否可以做相反的操作,即
There are many stackoverflow questions about running shell programs from within vim
. Is it is possible to do the reverse, i.e.,
$ vim :BundleInstall
允许我在外壳程序脚本中运行 BundleInstall ,而不必打开 vim
并手动运行?
to allow me to run BundleInstall as part of a shell script, rather than having to open vim
and run it manually?
推荐答案
Note, now the syntax has changed, and the line should read (As per @sheharyar):
vim +PluginInstall +qall
对于后代,以前的正确行是:
For posterity, previously, the correct line was:
vim +BundleInstall +qall
除了我以外,还有谁在找!注意:这位于 Github自述文件中,用于vundle.
Should anyone other than me be looking! Note: this is in the Github README for vundle.
这篇关于如何从shell命令行运行vim命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文