Vim pauses if echo in .vimrc file

拟墨画扇 提交于 2019-12-13 13:07:32

问题


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


回答1:


:silent !echo Hello

will do the trick.

~~~
From the OP, this worked:

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


来源:https://stackoverflow.com/questions/9171059/vim-pauses-if-echo-in-vimrc-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!