如何通过 vimscript 运行 shell 命令? [英] How to run a shell command through vimscript?
本文介绍了如何通过 vimscript 运行 shell 命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的 Vim 设置中,我想添加一个运行带有特定映射的 shell 命令的配置.在 Vimscript 中是否有任何可能的方法来做到这一点?
In my Vim setup I'd like to add a configuration that runs a shell command with a certain mapping. Is there any possible way to do this in Vimscript?
推荐答案
vim
有一个 system()
函数:
:call system('date')
这篇关于如何通过 vimscript 运行 shell 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文