On Dec 18, 2012, at 3:09 PM, Christian Brabandt <[email protected]> wrote:

> Hi David!
> 
> On Di, 18 Dez 2012, David Fishburn wrote:
> 
>> I am seeing different behaviour (gVim or console Vim) distilled down to
>> this ex cmd:
>> 
>> :let msg = "Enter character:" | echo msg | let c = getchar() | let c =
>> nr2char(c) | echon c
>> 
>> On my Ubuntu 12.04 (Vim 7.3.pretty current) and Mac Mountain Lion (MacVim
>> 7.3.390) box I get this output:
>> :Enter character:j
>> 
>> But I have some users reporting they get this:
>> :Enter character:j
>> Press ENTER or type command to continue
>> 
>> So far we see this behaviour with at least these versions:
>> uname -a
>> Linux iaintapps1 2.6.18-8.1.14.el5 #1 SMP Tue Sep 25 11:45:53 EDT 2007 i686
>> i686 i386 GNU/Linux
>> Vim 7.1.147
>> 
>> Linux, Slackware current and Debian Squeeze 6.0.6.
>> Vim 7.3.645
>> 
>> cmdheight = 1 in all cases, cmdheight = 2 problem goes away, but a lot of
>> users don't want to change this.
>> 
>> Can anyone think of reasons this might happen?
>> The screen width is far wider than the text displayed on the screen.
>> 
>> Originally, it seems that if TERM = *-256color that problem occurs.
>> So xterm-256color and screen-256color.
>> When TERM=xterm the problem went away sometimes, a little too inconsistent.
>> 
>> I am trying to get a consistent behaviour in my plugin, and will look for
>> work arounds in code if I can determine why it is happening.
> 
> Hm, could it be, that the screen size is smaller, so that the whole 
> command line wraps?
> 
> 
Good point.

I can now reproduce this on a vanilla Ubuntu 12.04 with Unity VM and the Vim 
which is in the depot. 

Yes if the ex cmd spans two lines when I execute it you will get the Press 
ENTER. 

When I shorten the cmd to fit on one line the Press ENTER went away on the good 
systems but still persists on the bad systems. 


--
David Fishburn

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui