(Assign tip id + convert to TipNew template + minor clean) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|previous=1514 |
|previous=1514 |
||
|next=1516 |
|next=1516 |
||
− | |created= |
+ | |created=2007 |
|complexity=basic |
|complexity=basic |
||
− | |author= |
+ | |author= |
|version=7.0 |
|version=7.0 |
||
+ | |subpage=/200712 |
||
+ | |category1=I18n |
||
+ | |category2= |
||
}} |
}} |
||
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. |
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. |
||
Line 13: | Line 16: | ||
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. |
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. |
||
− | |||
<pre> |
<pre> |
||
:set winaltkeys=no |
:set winaltkeys=no |
||
Line 19: | Line 21: | ||
If this setting is enabled, we can define the missing keys. Here are the most important ones: |
If this setting is enabled, we can define the missing keys. Here are the most important ones: |
||
− | |||
<pre> |
<pre> |
||
" Combinations accessible with the Alt key |
" Combinations accessible with the Alt key |
||
Line 37: | Line 38: | ||
</pre> |
</pre> |
||
− | These lines can be appended to your $ |
+ | These lines can be appended to your <code>$VIM/vimfiles/keymap/magyar_utf-8.keymap</code> file. |
==Comments== |
==Comments== |
||
− | |||
− | ---- |
||
− | [[Category:I18n]] |
Latest revision as of 06:29, 13 July 2012
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> | <M-f> [ <M-g> ] <M-x> # <M-c> & <M-v> @ <M-b> { <M-n> } <M-m> < <M-.> > <M-,> ;
These lines can be appended to your $VIM/vimfiles/keymap/magyar_utf-8.keymap
file.