-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Vim developers,

1. In normal mode, an unmapped CTRL-C "Interrupt[s] current (search)
   command." And it prints the "Type :quit<Enter> to exit Vim" message.
   So when I
    :nnoremap <C-c> <Nop>
   The message is indeed gone, but commands like :sleep 30 are still
   interrupted?! I would have expected such for :nnoremap <C-c> <C-c>,
   but not for mapping to <Nop>.

2. In insert mode :h i_CTRL-C mentions "Does not trigger the InsertLeave
   autocommand event." But with
    :autocmd InsertLeave * echomsg localtime()
    :inoremap <C-c> <C-c>
   I observe the event being fired.

Background of this is that with the fixes in 7.4.569, one actually has
to :map <C-c> <C-c> (i.e. to itself) in order to use mappings that
_include_ <C-c> in the {lhs}. (Otherwise, as :h CTRL-W_CTRL-C rightfully
notes, the mapping would be aborted.) But I would like to keep the
original interrupting of <C-c> intact (in all modes).

In summary, I see the following two inconsistencies as (minor) bugs:

1. With :nnoremap <C-c> <Nop>, normal mode commands like 20gs and slow
   searches should _not_ abort. But any mapping _to_ a {rhs} of <C-c>
   should abort (which it currently doesn't). I'm not sure how useful
   that would be, and it looks difficult to implement (as the CTRL-C
   handling is lower-level than the mapping layer, right?)

2. With :inoremap <C-c> <C-c>, the InsertLeave event should _not_ be
   fired. Could be just a simple condition that's missing there.

- -- regards, ingo
- -- 
  -- Ingo Karkat --  /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
  --   http://vim.sourceforge.net/account/profile.php?user_id=9713   --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUtorEAAoJEA7ziXlAzQ/vLJYH/jGj7Mvbc/j6IHkWQszF35O1
syKvzikuA/NwsIpfHpbA1tcvoNff3Mji05jFxdPo/siH/JJZECya/vcXMj2cFYyR
ouRnP6WN1fZ309FSsWnAahC5MLncxNUdANxVATWHQUbB948JYIklt34B8TPxCzEB
8OrQbIBRCtX0NoltyZlLTSLrpC1Ika3U8pQypHhNTpm2BKbuU/fANWEnYMfhawxJ
IZ06S+RWMoiH3R+64CJ0NFnBXIZBXMQ2JDOjE7wkSuvAPxoc6C/5+tmCq9ALOYFW
6+vTVAQ82Ps9NL+n1NFHGJI5hvdE3WJLs610ppZo1ODnyqkd48S9s4w6QKM/z4M=
=HsdX
-----END PGP SIGNATURE-----

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui