Fandom

Vim Tips Wiki

Map extra keys on non US keyboards

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 1326 Printable Monobook Previous Next

created 2006 · complexity basic · author Martin Krischik · version 6.0


On a US keyboard, it is convenient to press [ and ] which each have their own key.

You can have the same convenience on non-US keyboards with a map like the following (this example is for a German keyboard):

map ü <C-]>
map ö [
map ä ]
map Ö {
map Ä }
map ß /

A key like ü is only useful in insert mode, and you can still use it in that mode.

CommentsEdit

Enter is heavily used and - in Turkish Q keyboard layout - far from hand position so it is productive to use "ş" character as <cr> in normal mode. That way the keyboard characters are lay like G H J K L Ş which boosts performance. It is also possibly a good idea to use "ğ" as a mapleader key which lays just above Ş.


nmap ş <cr>
let mapleader = "ğ" " in your .vimrc file

Also on Fandom

Random Wiki