> 2010/4/10 Tony Mechelynck<antoine.mechelynck@gmail.com>:
>> On 10/04/10 01:48, Luis P. Mendes wrote:
>>>
>>> Hi,
>>>
>>> I use Vim everyday, I could say at every hour :-) in X graphical mode.
>>> $ vim --version
>>> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 24 2009 20:12:41)
>>> Included patches: 1-245
>>>
>>> I tried to use Vim with no X, in text base mode, but there was one
>>> problem with accented characters. I could not use them and the ones
>>> that where inserted before in graphical mode were like strange
>>> characters.
>>> Example:
>>> ã with X, is ~a in text mode
>>> the same with é --> 'e
>>>
>>> I checked LC_ALL and is defined to pt_PT in either situations.
>>> What should I correct to be able to use Vim in text mode in my
>>> Slackware 13 64 bits box?
>>>
>>>
>>> Luis
>>>
>>
>> There seems to be something weird in the way your terminal represents
>> characters. What does bash answer to
>>
>> echo -e '\0351'
>>
>> ? Mine replies with a reverse-video question mark because my terminal is in
>> UTF-8; if yours is in Latin1 the reply ought to be é, but if it is 'e it
>> shows that the terminal interprets é -> 'e after bash outputs it. (In a
>> UTF-8 terminal, to get é you need echo -e '\xC3\xA9' but then your LC_CTYPE
>> [or your LC_ALL, which overrides all other locale settings] should be
>> pt_PT.utf8 .)
>
> I tried in both X and text console and the result is the same: 'é'
> So, this must be a vim configuration issue, I presume.
>
> Luis
>
Hm. What does vim answer to
:verbose set enc? tenc?
:lang
(I would expect encoding=Latin1, termencoding= (empty), no line saying
where either of them was set, and all language values set to pt_PT.
Anything else could put us on the right track.)
Oh, and BTW, how do you type é in Vim? What happens in Insert mode when
you hit Ctrl-V followed by 233 (two-three-three)? Or Ctrl-K then e then
an apostrophe?
Apostrophe-e sounds like a language-mapping set by the "accents" keymap. So:
:verbose setlocal keymap? imi?
in the window where you see 'e instead of é and ~a instead of ã -- what
does Vim say? And what does gvim say, which displays them correctly?
Best regards,
Tony.
--
It may be that your whole purpose in life is simply to serve as a
warning to others.
--
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
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment