如果在 .vimrc 文件中回显,Vim 会暂停 [英] Vim pauses if echo in .vimrc file
本文介绍了如果在 .vimrc 文件中回显,Vim 会暂停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用 vim 时遇到了一点问题.我正在使用 Debian 测试和 --version 给出
I'm having a little problem with vim. I'm using Debian testing and --version gives
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 1 2011 03:25:24)
在我的 .vimrc 文件中,如果我使用 echo 语句,它将使用以下语句暂停 vim 的运行:
In my .vimrc file, if I use an echo statement, it will pause the running of vim with the following statement:
Press ENTER or type command to continue
然后 vim 将正常运行.这是简单地添加:
Then vim will run as normal. This was from adding simply:
echo "Hello"
到.vimrc的底部
如果有的话,我怎样才能停止这种暂停行为?
How can I stop this pausing behaviour, if at all?
谢谢,纳尼
推荐答案
:silent !echo Hello
会成功的.
~~~
从 OP 来看,这很有效:
~~~
From the OP, this worked:
let colorScheme = "evening"
silent execute "!echo setting color scheme to " . colorScheme
这篇关于如果在 .vimrc 文件中回显,Vim 会暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文