- EMACS_MAPPING =
[
:em_set_mark,
:ed_move_to_beg,
:ed_prev_char,
:ed_ignore,
:em_delete,
:ed_move_to_end,
:ed_next_char,
nil,
:em_delete_prev_char,
:complete,
:ed_newline,
:ed_kill_line,
:ed_clear_screen,
:ed_newline,
:ed_next_history,
:ed_ignore,
:ed_prev_history,
:ed_quoted_insert,
:vi_search_prev,
:vi_search_next,
:ed_transpose_chars,
:unix_line_discard,
:ed_quoted_insert,
:em_kill_region,
nil,
:em_yank,
:ed_ignore,
nil,
:ed_ignore,
:ed_ignore,
nil,
:undo,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:em_delete_prev_char,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_delete_prev_word,
nil,
:key_newline,
nil,
:ed_clear_screen,
:key_newline,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:em_yank_pop,
nil,
nil,
nil,
nil,
nil,
:redo,
:em_set_mark,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_prev_word,
:em_capitol_case,
:em_delete_next_word,
nil,
:em_next_word,
nil,
nil,
nil,
nil,
nil,
:em_lower_case,
nil,
:vi_search_next,
nil,
:vi_search_prev,
nil,
nil,
nil,
nil,
:em_upper_case,
nil,
nil,
nil,
:em_yank_pop,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_prev_word,
:em_capitol_case,
:em_delete_next_word,
nil,
:em_next_word,
nil,
nil,
nil,
nil,
nil,
:em_lower_case,
nil,
:vi_search_next,
nil,
:vi_search_prev,
nil,
nil,
nil,
:ed_transpose_words,
:em_upper_case,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_delete_prev_word
]
- VI_INSERT_MAPPING =
[
nil,
:ed_insert,
:ed_insert,
:ed_insert,
:vi_list_or_eof,
:ed_insert,
:ed_insert,
:ed_insert,
:vi_delete_prev_char,
:complete,
:ed_newline,
:ed_insert,
:ed_insert,
:ed_newline,
:menu_complete,
:ed_insert,
:menu_complete_backward,
:ed_ignore,
:vi_search_prev,
:vi_search_next,
:ed_transpose_chars,
:vi_kill_line_prev,
:ed_quoted_insert,
:ed_delete_prev_word,
:ed_insert,
:em_yank,
:ed_insert,
:vi_command_mode,
:ed_ignore,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_digit,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:ed_insert,
:vi_delete_prev_char,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
:key_newline,
nil,
nil,
:key_newline,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil
]
- VI_COMMAND_MAPPING =
[
nil,
:ed_move_to_beg,
nil,
:ed_ignore,
:vi_end_of_transmission,
:ed_move_to_end,
nil,
nil,
:ed_prev_char,
nil,
:ed_newline,
:ed_kill_line,
:ed_clear_screen,
:ed_newline,
:ed_next_history,
:ed_ignore,
:ed_prev_history,
:ed_ignore,
:vi_search_prev,
:ed_ignore,
:ed_transpose_chars,
:vi_kill_line_prev,
:ed_quoted_insert,
:ed_delete_prev_word,
nil,
:em_yank,
nil,
nil,
:ed_ignore,
nil,
nil,
nil,
:ed_next_char,
nil,
nil,
:vi_comment_out,
:ed_move_to_end,
nil,
nil,
nil,
nil,
nil,
nil,
:ed_next_history,
nil,
:ed_prev_history,
nil,
:vi_search_prev,
:vi_zero,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
:ed_argument_digit,
nil,
nil,
nil,
nil,
nil,
:vi_search_next,
:vi_alias,
:vi_add_at_eol,
:vi_prev_big_word,
:vi_change_to_eol,
:ed_kill_line,
:vi_end_big_word,
:vi_prev_char,
:vi_to_history_line,
nil,
:vi_insert_at_bol,
:vi_join_lines,
:vi_search_prev,
nil,
nil,
nil,
nil,
:vi_paste_prev,
nil,
nil,
nil,
:vi_to_prev_char,
nil,
nil,
:vi_next_big_word,
:ed_delete_prev_char,
nil,
nil,
nil,
nil,
nil,
:vi_first_print,
nil,
nil,
:vi_add,
:vi_prev_word,
:vi_change_meta,
:vi_delete_meta,
:vi_end_word,
:vi_next_char,
nil,
:ed_prev_char,
:vi_insert,
:ed_next_history,
:ed_prev_history,
:ed_next_char,
nil,
nil,
nil,
:vi_paste_next,
nil,
:vi_replace_char,
nil,
:vi_to_next_char,
nil,
:vi_histedit,
:vi_next_word,
:ed_delete_next_char,
:vi_yank,
nil,
nil,
:vi_to_column,
nil,
nil,
:em_delete_prev_char,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil,
nil
]