On 03/09/09 14:59, CHEN Cheng wrote:
[...]
> Aha, your experiment made me blame the difference between your box
> and mine. Suddenly, an idea came out, which asked me to check $LANG.
>
> I did:
> $ LANG=C vim
> Guess what? I reproduced your experiment. I also see YYYY!!!
>
> But, when I:
> $ echo $LANG
> en_US.UTF-8
> $ vim
> Oops, "â" came out as before.
>
> So, for vim, the problem might be utf8 support conflicting with
> meta key handling.
>
> Since I use the Chinese language, I can't set encoding to latin1, which
> turns Chinese characters into a mess.
>
> I think I'd better live with escape meta key mode, because gnome-terminal
> supports Chinese well, but it doesn't support 8bit meta key mode.
>
>
> Best regards,
> Cheng
:lang " in gvim
Current language:
"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.UTF-8;LC_TIME=en_GB;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=C;LC_PAPER=en_GB;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8"
:lang " in Console Vim in Linux console
Current language:
"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=C;LC_PAPER=en_GB;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8"
:lang " in Console Vim in KDE3 konsole
Current language:
"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=C;LC_PAPER=en_GB;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8"
also, 'encoding' is set to utf-8 in both. 'termencoding' is empty in the
linux console (meaning "use 'encoding'") and utf-8 (set forcibly at GUI
startup) in gvim with GTK+2 GUI.
The important one should be LC_CTYPE, IIUC. In gvim, Alt-b opens the
Buffers menu regardless of mappings (which may be due to 'winaltkeys'
set to menu). In Console Vim in konsole, with esc-meta, the mapping
doesn't word and Alt-b is seen as Esc + b (leave Insert mode and go back
one word). In Console mode in /dev/tty3, with bit-meta, the mapping
doesn't work (I get â).
Strange that it worked yesterday but not today; but I'm not gonna keep
that mapping because a-circumflex is (in French) something I need to be
able to type: hence no alt-b mappings for me. If I need some mapping
I'll use an Fn key (or Shift+Fn).
Best regards,
Tony.
--
Living on Earth may be expensive, but it includes an annual free trip
around the Sun.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---