Paul Evans wrote:

> In accordance with terminal standards, my terminal sends modified
> Unicode that doesn't have any other representation (such as
> Ctrl-Shift-P) using CSI u encoding; for example
> 
>   <C-S-P>  ==   CSI 80;5 u
> 
> Unfortunately vim doesn't understand this, getting as far as the Escape
> part of the CSI, treating it as
> 
>   Esc [ 80 ; 5 u
> 
> causing vim to leave insert mode, start a [ movement that's then
> aborted, then undo the previous 5 changes. Not helpful.
> 
> Currently I have something of a bit of a hack in my .vimrc to handle a
> few of the more common ones by programatically generating a large list
> of map/imap commands; for example, the handler for Space:
> 
>    <Esc>[32;8u   <C-S- >
>    <Esc>[32;7u   <C- >
>    <Esc>[32;6u   <C-S-Space>
>    <Esc>[32;5u   <C-Space>
>    <Esc>[32;4u   <S- >
>    <Esc>[32;3u    
>    <Esc>[32;2u   <S-Space>
> 
> However, I believe we can all agree this is unsustainable, as I don't
> want to have to store a map and an imap command 7 times for each of the
> ~60-odd Unicode keys I could type.
> 
> Instead does anyone have a better idea here?

What terminal is that?

-- 
hundred-and-one symptoms of being an internet addict:
113. You are asked about a bus schedule, you wonder if it is 16 or 32 bits.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/groups/opt_out.

Raspunde prin e-mail lui