Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Alright, this drives me crazy. I'm using gvim and it defaults to using a Swedish keyboard layout. Is there some way of changing that to an English one? I don't have access to setxkbmap on this system, for some odd reason. So I don't think I could do it on an OS level. I don't care whether it stays English when I'm in insert mode or not, but I really need it to be English for command mode.


share|improve this question

migrated from Jun 19 '13 at 13:18

This question came from our site for professional and enthusiast programmers.

Gvim menu: Edit > Keyboard Layout helps? – LIttle Ancient Forest Kami Jun 19 '13 at 13:28

Option 'keymap' allows changing the meaning of keys on insert mode, while 'langmap' does the same in `normal and visual mode.

Note that these options requires Vim compiled with +keymap and +langmap. You can check if they are available on your Vim with command :version.

Another option is using another external layout switcher, as xkb-switch. There is a vim plugin that may be used to access it: vim-xkbswitch : Automatic Keyboard Layout Switcher

I don't know about Swedish keyboard, but this plugin may also be useful: translit3 : Plugin used for text transliteration.

Last, additional information can be found on this answer to a similar question.

share|improve this answer

You must log in to answer this question.