[Vim-latex-devel] Re: Bug#233682: !commando ends in insert mode
Brought to you by:
srinathava,
tmaas
From: Artur R. C. <ar...@he...> - 2004-02-22 17:17:55
|
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: On Thu, Feb 19, 2004 at 01:11:07PM +0100, Diether Knof wrote: > 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). 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 -- http://www.shibumi.org/eoti.htm |