On 15.06.11 18:53, ZyX wrote:
> *I do not know what I will map in the next few month.*
> With `nore' I know that whatever I will want to map, it won't break things,
> and
> thus I should not bother myself with thinking about it.
Yes, now that I am beginning to use a few more mappings, it is time to
think defensively too.
> > The last two mappings still provide corrupt output:
> > <A-<> becomes ¬ instead of «
> > <A->> becomes ® instead of »
> > just as was the case with the original mapping.
> Maybe some problems with `<A-<>' itself. I do not know how to avoid them:
> `inoremap <A-<> smth' does not work for me too. For terminals there is
> currently
> a workaround: `inoremap <Esc><LT> smth'. It works on my machine, but I know
> it
> to depend on setup of your terminal emulator.
Now that I've had sleep, your <expr> fix works here. It is embarrassing
to admit that I didn't press <shift-A-<> to get <A-<>, but only what
was explicitly in the mapping. That just goes to show the benefit of
taking a break at midnight.
> To get hex value of some character I usually write it in a buffer, put cursor
> on
> it and type `ga' in normal mode ('encoding', 'fileencoding' and $LANG are
> utf-8.
> Guess only the first should matter).
Yes, I remembered that there is something like that, but not the
required keystrokes. Thanks for the hint.
I'll add some notes to my Vim survival jottings, because I'd never find
all the parts of the mapping solution in the Vim documentation.
Thank you Zyx, for a complete and user-friendly fix.
Erik
--
The advantage of a bad memory is that one enjoys several times the same
good things for the first time.
- Friedrich Nietzsche
--
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