Hi Tony, thank you very much for your help and time trying to help me.
Here are the results I got from vim. In X, vim (not gvim which I don't use) returns: encoding=latin1 termencoding= lang: Current language: "LC_CTYPE=pt_PT; LC_NUMERIC=C; LC_TIME=pt_PT; LC_COLLATE=pt_PT; LC_MONETARY=pt_PT; LC_MESSAGES=pt_ PT;LC_PAPER=pt_PT; LC_NAME=pt_PT; LC_ADDRESS=pt_PT; LC_TELEPHONE=pt_PT; LC_MEASUREMENT=pt_PT; LC_IDENTIFICATION=pt_PT" keymap= iminsert=0 Ctrl-V followed by 233 é Ctrl-K then e then an apostrophe é and if I key: Ctrl-K then e then the accent mark followed by a space I get a é In text console the results are the same. Another information: I tried pico text editor in X, and am able to use accented characters. In text mode console, I can't. The symptoms are identical to vim's. To use accented characters, I just have to press the accent first (ex. ') and the base character I want accented (like e). So, I guess I have to check my Slackware system configuration instead of vim's. Luis 2010/4/11 Tony Mechelynck <[email protected]>: > On 10/04/10 11:23, Luis P. Mendes wrote: >> >> 2010/4/10 Tony Mechelynck<[email protected]>: >>> >>> 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.
