#233682 !commando ends in insert mode

#233682#5
Date:
2004-02-19 12:11:07 UTC
From:
To:
If I press 'Return' while a shell commando is executed, I am in input mode afterwards.
Example ':!sleep 5' followed by a <Return> (while sleeping).

I have tested it with a new user (without configuration files). If vim-latexsuite is installed, I get the bug, if I deinstall it I have no problem.

My vim-packages:
$ dpkg -l | grep vim
ii  vim            6.2-214+1      Vi IMproved - enhanced vi editor
ii  vim-doc        6.2-214+1      Vi IMproved - Documentation files
ii  vim-gtk        6.2-214+1      Vi IMproved - GTK2 Version
ii  vim-latexsuite 0.20031113-1   Brings the LaTeX power to Vim
ii  vim-scripts    5-1            plugins for vim, adding bells and whistles

Diether Knof

#233682#10
Date:
2004-02-22 17:10:09 UTC
From:
To:
Hello

plugin/imaps.vim:481 and next contains:

if !hasmapto('<Plug>IMAP_JumpForward', 'n')
    nmap <C-J> <Plug>IMAP_JumpForward
endif

What are above lines for? I discovered, that this piece of code is
responsible for bug reported to Debian: http://bugs.debian.org/233682:

It looks like <Return> key generates two keystrokes: ^M, which
is interpreted by vim as "Enter" at:
Hit ENTER or type command to continue
and ^J which is passed into processing and, in this case, which runs (via
nmap) IMAP_JumpForward.

Behavior which I cannot understand is: why <Return> pressed after "Hit
ENTER..." message works correctly, but pressed before it works bad.

Is it vim-latex or vim bug?

Cheers
	Artur