:Keymap
The last section in the configuration file controls the mapping of keyboard keys to symbols and commands. The section begins with a line reading :keymap and ends with a line reading :end_keymap.
:keymap
CTRL+A cmd align_on_this_symbol
CTRL+J cmd join_row_below
CTRL+K cmd show_keyboard_mappings
CTRL+L cmd resize_frame
CTRL+R cmd replace_this_object
CTRL+S cmd save ALT+B text <b></b>
ALT+C text <sc></sc>
ALT+R text <rm></rm>
ALT+F text <fr></fr>
ALT+i text <in></in>
ALT+r text <rad></rad>
ALT+S text <sum></sum>
:end_keymap
Entries are of the form key type data where:
• key consists of a single keyboard character, a single keyboard character preceded with ALT+, or a single letter preceded with CTRL+ or ALT+ CTRL+.
Following are some examples of valid key names:
a
|
CTRL+A
|
A
|
ALT+A
|
!
|
ALT+CTRL+ A
|
• type is either cmd or text, depending on whether key executes a command ( cmd) or inserts one or more symbols or construct (text ).
• data depends on the value of type. If type is cmd, the data is the command as it appears in the menu section of the configuration file. If type is text, the data is the SGML representing the symbol(s) or construct(s) that should be inserted.
Another example would be, to map the Greek letter beta to ALT+B: In the :keymap section of your configuration file, enter the line:
ALT+ B text <g>b</g>
You cannot map both commands and text to a single key.