Vim Tips Wiki
Register
(initial edit)
 
No edit summary
Line 8: Line 8:
 
|version=<!-- minimal vim version that can be used -->
 
|version=<!-- minimal vim version that can be used -->
 
|text=
 
|text=
  +
<!--
 
   
 
Key maps using the Alt modifier
 
Key maps using the Alt modifier
Line 41: Line 41:
   
   
-->
 
 
}}
 
}}
   

Revision as of 07:46, 27 August 2007


Tip: Key maps using the Alt modifier

Created: Complexity: Author: Version:


Key maps using the Alt modifier

This tip is about enabling the use of all characters in a Hungarian keymap, but the idea may be useful for other languages as well, hence the title.

There are four different Hungarian keymaps, depending on the infamous y-z key swap and the number of keys on the keyboard (101 or 102). For 101-key keyboards there is no separate 0 (zero) key, it is accessible by Alt-i'. The Happy Hacking Keyboard has a layout similar to 101 keys, so this must be used there as well.

Important punctuation characters are accessible with mappings using the Alt key, so we have to disable menu-shortcuts using the Alt key with the following setting.

:set winaltkeys=no

If this setting is enabled, we can define the missing keys. Here are the most important ones:

" Combinations accessible with the alt key
<M-`> 0
<M-q> \
<M-w>

Comments