Vim Tips Wiki
Register
(Added to i18n category)
(Insert TipProposed template + manual clean)
Line 1: Line 1:
  +
{{TipProposed
<!-- [[Category:SomeCategory]] -->
 
  +
|id=0
 
  +
|previous=0
{{Tip
 
  +
|next=0
|title=<!-- a short and concise title -->
 
|created=<!-- the date of today -->
+
|created=August 27, 2007
|complexity=<!-- basic, intermediate, advanced -->
+
|complexity=basic
  +
|author=Anon
|author=<!-- Your name or [[User:Name]] -->
 
  +
|version=7.0
|version=<!-- minimal vim version that can be used -->
 
 
}}
|text=
 
 
 
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.
   
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 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.
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.
 
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>
:set winaltkeys=no
+
:set winaltkeys=no
  +
</pre>
   
 
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>
" Combinations accessible with the alt key
+
" Combinations accessible with the Alt key
<M-`> 0
 
<M-q> \
+
<M-`> 0
<M-w> &#124;
+
<M-q> \
<M-f> [
+
<M-w> &#124;
<M-g> ]
+
<M-f> [
<M-x> #
+
<M-g> ]
<M-c> &
+
<M-x> #
<M-v> @
+
<M-c> &
<M-b> {
+
<M-v> @
<M-n> }
+
<M-b> {
<M-m> <
+
<M-n> }
<M-.> >
+
<M-m> <
<M-,> ;
+
<M-.> >
 
<M-,> ;
  +
</pre>
   
 
These lines can be appended to your $vim/vimfiles/keymap/magyar_utf-8.keymap file.
 
These lines can be appended to your $vim/vimfiles/keymap/magyar_utf-8.keymap file.
   
 
==Comments==
   
  +
----
}}
 
 
== Comments ==
 
<!-- comments on the content of the tip go here, comments on the article itself can go to the discussion page -->
 
<!-- sign your comments with ~~~~ and separate them with ---- -->
 
 
 
[[Category:I18n]]
 
[[Category:I18n]]

Revision as of 03:58, 5 January 2008

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created August 27, 2007 · complexity basic · author Anon · version 7.0

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.

Comments