Previous: , Up: Key User Interface   [Contents][Index]


6.3 Understanding keycodes

The above example could use a little more explaining for people unfamiliar with vim maps. The map takes a key and a value. They are separated by a space. Neither the key or value can have a space in them, or it is considered to be the separator between the key and value. If the user desires to have a space in either the key or value part of a map, they can use the keycode notation <Space>. Below is a table of the keycodes in keycode notation form. The keycode notation can be used in any mapping command.

notationmeaning
<Esc>escape key
<Up>cursor up key
<Down>cursor down key
<Left>cursor left key
<Right>cursor right key
<Home>home key
<End>end key
<PageUp>page up key
<PageDown>page down key
<Del>delete key
<Insert>insert key
<Nul>zero
<Bs>backspace key
<Tab>tab key
<NL>linefeed
<FF>formfeed
<CR>carriage return
<Space>space
<Lt>less-than
<Bslash>backslash
<Bar>vertical bar
<F1> - <F12>function keys 1 to 12
<C-...>control keys
<S-...>shift keys