[英]Vim pauses if echo in .vimrc file
I'm having a little problem with vim. 我对vim有点问题。 I'm using Debian testing and --version gives 我正在使用Debian测试和--version给出
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 1 2011 03:25:24)
In my .vimrc file, if I use an echo statement, it will pause the running of vim with the following statement: 在我的.vimrc文件中,如果我使用echo语句,它将使用以下语句暂停运行vim:
Press ENTER or type command to continue
Then vim will run as normal. 然后vim将正常运行。 This was from adding simply: 这只是简单地添加:
echo "Hello"
to the bottom of .vimrc 到.vimrc的底部
How can I stop this pausing behaviour, if at all? 如果有的话,我怎么能停止这种暂停行为呢?
Thanks, Narnie 谢谢,纳妮
:silent !echo Hello
will do the trick. 会做的。
~~~ ~~~
From the OP, this worked: 从OP,这工作:
let colorScheme = "evening"
silent execute "!echo setting color scheme to " . colorScheme
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.