Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am working on several documents where I have to type [ ] { and the like (which is much easier with with an american keyboard layout (and to which I am used much more)) but where I also have to type Umlauts such as ä, ö and ü.

Usually, I go be setting up the (what I believe to be a standard) Windows Shortcut Alt+Shift to switch between these layouts.

This is unpractical, because at times I am not sure if I am already in the german layout when I need the german layout (and vice versa).

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

I guess it could be solved with changed :map and :imap but I'd rather not use these for such porposes unless really forced to.

like image 999
René Nyffenegger Avatar asked Feb 03 '26 22:02

René Nyffenegger


2 Answers

I don't think there is such an option - even though vim can even make pancake for you! It'd be highly unlikely for any program to allow changing the keyboard layout of regular keys since basically any OS already supports it.

like image 109
ThiefMaster Avatar answered Feb 05 '26 11:02

ThiefMaster


I am not sure if I am already in the german layout when I need the german layout

Do you have the language bar enabled? It should have an icon that represents your current settings.

Microsoft Knowledgebase article: HOW TO: Use the Language Bar in Windows XP

like image 24
idbrii Avatar answered Feb 05 '26 13:02

idbrii



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!