Is there a way to change the keyboard layout in Vim on Windows?

I am working on several documents where I need to type [ ] {and the like (which is much easier using the English keyboard layout (and which I use much more for)), but where I also have to enter Umlauts such as ä, ö and ü .

Usually, I want to configure (what I think is standard) a Windows shortcut Alt+Shiftto switch between these layouts.

This is impractical because sometimes I’m not sure if I’m already on a German layout when I need a German layout (and vice versa).

So, is there a better way to change the keyboard layout in Vim at the * OS level "?

I think this could be solved with the help of the modified ones :mapand :imap, but I would prefer not to use them for such objects if it is really not forced.

+3
source share
4 answers

I don’t think there is such an option - even if vim can even make a pancake for you! It would be unlikely that any program would allow you to change the keyboard layout of ordinary keys, since in principle any OS already supports it.

+1
source

I'm not sure if I'm already on a German layout when I need a German layout.

Do you have a language bar turned on? It should have an icon that represents your current settings.

Microsoft Knowledge Base article: HOW: Use the language bar in Windows XP

+1

, Vim :

1. : CTRL-K a:, ä.
2. :set digraph, a<BS>:, .

These methods will work with any character that needs umlauts, just use CTRL+K o:or, CTRL+K u:respectively.

Source: http://vim.wikia.com/wiki/Entering_special_characters

+1
source

You might be interested in some Dvorak layouts (my bépo , maybe this might suit you?)

0
source

Source: https://habr.com/ru/post/1788870/


All Articles