Christian Brehm wrote:
Hi,

I just installed gvim at SuSe 10.1 (Version 6.4, 2005 Oct, 15th,
compiled May 2006).
multi_byte and multi_lang is enabled.
But still I cannot use any multibyte characters. At all, every command
containing the 'Alt' key doesn't work...
I've set the language to [EMAIL PROTECTED], but others like C do not change the
behavior. encoding is set to iso-8859-15.

Can anyone help me or give some hints?

Thanks,

Christian


Entering characters by numeric value in Vim doesn't use the Alt key, see ":help i_CTRL-V_digit". The method described there works also in Command-line mode, even though the help tag starts with i_

...and if you use Ctrl-V to paste, replace it by Ctrl-Q wherever it is mentioned in the Vim documentation.

For special characters, don't use the plain Alt key (left of the space bar) but Alt-Gr (right of the space bar). AltGr-e should for instance give € (the euro sign) if your current 'encoding' knows it, if your 'termencoding' is set to what your keyboard driver sends (usually the value of 'encoding' at Vim startup), and if you have a "modern" keyboard driver which knows about the Euro sign.

Note that ISO-8859-15 is _not_ a multibyte encoding (only 256 values, 0x00 to 0xFF, are defined in that encoding).

To really test myltibyte functions, try setting 'encoding' to Unicode as 
follows:

        if &encoding !~? '^u'
                if &termencoding == ''
                        let &termencoding = &encoding
                endif
                set encoding=utf-8
                set fileencodings=ucs-bom,utf-8,default
                setglobal bomb          " optional line
        endif

In UTF-8, all codepoints above U+007F are multi-byte.


Best regards,
Tony.

Reply via email to