Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I put the following lines to my _vimrc file in GVim on Windows XP:

set encoding=utf-8
set fileencodings=ucs-bom,utf-8

Then, ALT key changed its behavior in insert mode. Now, ALT key inserts accented characters when pressed with a letter key.

I have several mappings for ALT key in insert mode. But I need to use utf-8 as well. How can I enable utf-8 without changing the behavior of ALT key?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I found an acceptable solution:

I put my existing ALT key mappings after utf-8 settings. So my mappings are not broken.

share|improve this answer
You can mark your own answer as accepted, so people searching for this same question would know it already has a solution before even entering in this thread. –  GmonC Jun 28 '10 at 1:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.