On 18/01/10 14:45, Ney wrote:
On Jan 17, 10:01 pm, Tony Mechelynck<[email protected]>
wrote:
On 16/01/10 03:45, Ney wrote:



Hi, i'm on abnt2 keyboard and would like to use the letter to access
my command line.
I tried this:

nnoremap ç :

from here[http://vim.wikia.com/wiki/Short_mappings_for_common_tasks]
but didn't work.

this mapping:
nnoremap <Space>    :
works, but is not what i want.

Thanks.

It ought to work. In Insert mode, gives doesn't it? And you have no
other mapping to either c-cedilla or Alt-g (which are the same character
to Vim)?

If you have the following:

         :map     ç    :
         :map <M-g>       gj

(or any other {rhs} in the second case) the second mapping will override
the first, because Vim represents Alt-g as g + 0x80; now g is 0x67 so
Alt-g is 0xE7 which is .

Best regards,
Tony.
--
A year spent in artificial intelligence is enough to make one believe
in God.

> weird, i have no mapping for c-cedilla.
> Thanks anyway Tony.
>
>

You said you wanted to use c-cedilla as the {lhs}, and that it didn't work. Now here are the possibilities: - If you have a mapping using Alt-g or Meta-g as the {lhs} it will override anything c-cedilla might have been mapped to before; - If 'encoding' is not set to either a full-Unicode charset, which means one of:
        utf-8 aka utf8
        ucs-2 aka ucs-2be
        ucs-2le
        utf-16 aka utf-16be
        utf-16le
        ucs-4 aka ucs-4be aka utf-32 aka utf-32be
        ucs-4le aka utf-32le
        GB18030
(all of which except the last one are internally handled as UTF-8), or a "Western" charset, which (IIRC) means one of
        Latin1 aka iso-8859-1
        iso-8859-15 aka Latin9
        cp1252 aka Windows-1252
        macroman (I think)
some "Western" legacy codepage of the form cp??? where ??? are 3 digits, but I'm not sure which codepage numbers are "Western" and which ones aren't — then Vim has no memory representation for the c-cedilla character and therefore you cannot use it as the {lhs} of a mapping.


Best regards,
Tony.
--
Those who can't write, write manuals.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to