如果在.vimrc文件中回显,Vim会暂停 [英] Vim pauses if echo in .vimrc file

查看:143
本文介绍了如果在.vimrc文件中回显,Vim会暂停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对vim有一点问题。我正在使用Debian测试,并且 - 转换为

  VIM  -  Vi IMproved 7.3(2010年8月15日,2011年1月1日编译03 03 :25:24)

在我的.vimrc文件中,如果我使用echo语句,它将暂停使用以下语句运行vim:

 按ENTER键或键入命令以继续

然后vim将正常运行。这是从简单地添加:

  echoHello

到.vimrc的底部



如果有的话,我该如何停止这种暂停行为?



谢谢,
Narnie

解决方案

 :silent!echo Hello 

会做的伎俩。



~~~

从OP开始,这是有效的:

  let colorScheme = 晚上
无声执行!回声设定色彩方案。 colorScheme


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)

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

Then vim will run as normal. This was from adding simply:

echo "Hello"

to the bottom of .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:

let colorScheme = "evening"
silent execute "!echo setting color scheme to " . colorScheme

这篇关于如果在.vimrc文件中回显,Vim会暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆