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
