Hi, Marco wrote: > > On 2011-02-03 Jürgen Krämer <[email protected]> wrote: >> >> Marco wrote: >>> >>> I discovered a strange behaviour while setting up an inoremap command: >>> >>> inoremap ( ()<ESC>ha " Works >>> inoremap » »«<ESC>ha " Doesn't work >>> >>> Why does the second mapping not work? >> >> how do you enter the opening guillemet? Do you have a single key for it >> or do you enter it as a digraph? IIRC you cannot use a digraph on the >> left side of a mapping. > > I press <AltGr>+y to get the ».
hmm, <AltGr>+<Y> does not get me anything on my keyboard; you seem to have a different keyboard layout than I have (German layout, the <Y> key is at the left side of the lower row). What works for me is to press <Alt>+<;>. This is because mappings with <Alt> are internally translated to the character with the same ordinal value plus the highest bit set. <;> has an ordinal value of 59 and adding 128 gives 187, which is the ordinal value of <»>. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- You received this message from the "vim_use" 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
