On Thu, 5 Feb 2015 14:37:26 +0200
Marius Gedminas <[email protected]> wrote:

> For historical reasons[*] only the following Ctrl+punctuation
> sequences are recognized by vim:
> 
> - Ctrl-@
> - Ctrl-[  (same as <Esc>)
> - Ctrl-\  (sends SIGQUIT by default)
> - Ctrl-]
> - Ctrl-^
> - Ctrl-_
> - Ctrl-?  (same as <Backspace> or <Del>, depending)
> 
> [*] ASCII has 33 control characters: 0 through 31 and 127, represented
>     by ^@, ^A ... ^Z, ^[, ^\, ^], ^^, ^_, and ^?.  Control keys in a
>     terminal emit those control characters.  This is also why Vim
> can't distinguish Ctrl-A from Ctrl-Shift-A.

In case you're wondering why arguments about what 1970s-style terminals
did matters at all to modern GUI-based editors like gvim, remember that
gvim is still really just a terminal-based vim inside, wrapped in a
thin veneer of a specialised terminal emulator to target whatever GUI
layer it's based on. The internals, especially the keyboard input
queue, still follow those 1970s ideas of what keyboard input should
look like.

If you're still keen to map these keys anyway, you might be interested
in Neovim. That has a rebuilt input system that can cope with much more
expressive schemes of input encoding. That should be able to
orthogonally handle anything a GUI can throw at it, and there's more
hackery in the works to build a terminal one using either libtermkey or
libtickit, thus allowing it to handle all these extra keys if your
terminal supports the CSIu encoding scheme for them.

</advert>

-- 
Paul "LeoNerd" Evans

[email protected]
http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS

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

Attachment: pgp6l1cGb_fmW.pgp
Description: OpenPGP digital signature

Raspunde prin e-mail lui