Yakov,
Thanks for your reply. I probably should have checked the archives
before posting, and I will do that tonight. I did try your suggestion,
thought, and things are pretty odd, so I thought I would post again.
Turns out that when I type ctl-v + my 'é'-key I get 'é' itself; but I
don't if I just type the 'é'-key by itself. As in your case, the
decimal code is 233. I tried the mapping trick: oddly enough, just
pressing the 'é' key in command mode displays it fine. I typed the
following:
:nmap <c-[>é <C-V>233
I didn't get an error message, but I still can't display the accented
letter in insert mode just by pressing the key. Any thoughts?
Eric
On 7/9/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
On 7/10/06, Eric Guindon <[EMAIL PROTECTED]> wrote:
> I am trying to use vim to edit French text. However, vim won't display
> the accute accent-e (é). It does, however, display every other
> accented letter without problem. It even displays the upper-case
> accute-e (É). I've tried several different keyboad configurations
> (French Canadian 'legacy', multilingual, etc.), but I get the same
> result with all of them. Anybody knows what might be responsible?
Somebody reported exactly such problem ~2 months ago,
and it was discussed at length on this list, until the solution
was found: exactly one accented key did not work both in
(both normal and insert mode), but all other accented keys
worked ok (you can try to find it in the list archives).
The solution that finally worked for the problem was like the
following. I'd like to attribute it, but name of the author slipped
from my memory. As fas as I remeber, the working (but
nonobvious) solution was as follows:
1. Find out the sequence that your é key generates:
a) enter insert mode
b) press Ctrl-V key
c) press your é key
d) make a record of what you saw
You might see something like ^[ee (that's 3 characters:
escape i e). Your sequence will be different, but let's assume
it is ^[ee
2. Find out the decimal code of the real é character:
a) either use command :dig
b) or open in vim file with é created in some other editor,
position cursor on é and press ga, or
use some other method.
It might be 233, that's code of é in my codepage.
3. Use following mappings:
:nmap <c-[>[e <C-V>123
:imap <c-[>[e <C-V>123
, where <c-[>e is sequence you obtained in Step 1, and
123 is decimal code of the character obtained in Step 2.
Note that ^[ from Step 1 is converted to <c-[> here.
If this does not work for you, then send us what you see
when you do Step 1.
Yakov