On 7/20/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote:
Hi
In a function, I am echoing some message.
The message is echoed and there is message -
Please ENTER or type command to continue
Is there any way to get rid of this. I just want the message to be
displayed, but should not wait for VIM to display to press any key.
I saw this behaviour in sketch.vim while calling the ToggleSketch()
function.
1. If your message is one-line, then try to make message shorter
or add ':set showcmd', or both.
Setting ':set cmdline' shortens the max length of message that can be
shown without 'Press Enter' by ~ 14 chars.
With ':set noshowcmd', :echo can output up to &columns width message
without 'Press Enter'. With ':set showcmd'', max one-line message length
is shorter.
2. If the message is file-related, try:
:set shortmess+=t
or :set shortmess+=T
And read :help 'shortmess'
3. Adding :redraw command before the :echo command often helps.
4. You can try set cmdheight=N (N>1) if your message is multiline
or nothing else helps (lie when you cannot modify source code).
Yakov