mappings.md

December 21, 2020 ยท View on GitHub

Normal

KeyActionDescription
<backspace>cursor_left_with_wrapMove the cursor one position left, wrapping to the previous line.
Venter_line_selectionEnter line selection mode.
venter_char_selectionEnter character selection mode.
^Venter_col_selectionEnter column selection mode.
Oprepend_and_insertInsert a new line before the current line and enter insert mode.
oappend_and_insertInsert a new line after the current line and enter insert mode.
ainsert_after_cursorPlace the cursor after the selected character and enter insert mode.
sdelete_forward_and_insertDelete the character under the cursor and enter insert mode.
xdelete_forwardDelete the character under the cursor.
PpastePaste yanked text before (P) or after (p) the cursor.
ppastePaste yanked text before (P) or after (p) the cursor.
rreplace_charReplace a single character.
Ainsert_at_endMove the cursor to the end of the current line and enter insert mode.
uundo_historyUndo history until the last breakpoint.
^Rredo_historyRedo history until the next breakpoint.
^Lredraw_allRepaint the screen.
^Ggoto_definitionJump to the definition of the word under under cursor.
ienter_insertEnter insert mode.
Renter_replaceEnter replace mode.
<shift-up>enter_line_selection_and_cursor_upEnter line selection and move the cursor up one line.
<shift-down>enter_line_selection_and_cursor_downEnter line selection and move the cursor down one line.
<alt-up>previous_tabSwitch the previous tab
<alt-down>next_tabSwitch to the next tab

Insert

KeyActionDescription
<escape>leave_insertLeave insert modes and return to normal mode.
<del>delete_forwardDelete the character under the cursor.
^Cleave_insertLeave insert modes and return to normal mode.
<backspace>smart_backspaceDelete the preceding character, with special handling for indentation.
<enter>insert_line_feedInsert a line break, splitting the current line into two.
^Operform_omni_completion(temporary) Perform smart symbol completion from ctags.
^Vinsert_charInsert one character.
^Wdelete_wordDelete the previous word.
<tab>smart_tabInsert a tab or spaces depending on indent mode. (Use ^V to guarantee a literal tab)
/smart_comment_endInsert a / ending a C-style comment.
}smart_brace_endInsert a closing brace and smartly position it if it is the first character on a line.
<paste-begin>paste_beginBegin bracketed paste; disable indentation, completion, etc.
<paste-end>paste_endEnd bracketed paste; restore indentation, completion, etc.

Replace

KeyActionDescription
<escape>leave_insertLeave insert modes and return to normal mode.
<del>delete_forwardDelete the character under the cursor.
<backspace>cursor_left_with_wrapMove the cursor one position left, wrapping to the previous line.
<enter>insert_line_feedInsert a line break, splitting the current line into two.

Line Selection

KeyActionDescription
<escape>leave_selectionLeave selection modes and return to normal mode.
^Cleave_selectionLeave selection modes and return to normal mode.
Vleave_selectionLeave selection modes and return to normal mode.
vswitch_selection_modeSwap between LINE and CHAR selection modes.
yyank_linesCopy lines into the paste buffer.
<backspace>cursor_left_with_wrapMove the cursor one position left, wrapping to the previous line.
<tab>adjust_indentAdjust the indentation on the selected lines (<tab> for deeper, <shift-tab> for shallower).
<shift-tab>adjust_indentAdjust the indentation on the selected lines (<tab> for deeper, <shift-tab> for shallower).
Ddelete_and_yank_linesDelete and yank the selected lines.
ddelete_and_yank_linesDelete and yank the selected lines.
xdelete_and_yank_linesDelete and yank the selected lines.
sdelete_lines_and_enter_insertDelete and yank the selected lines and then enter insert mode.
rreplace_chars_in_lineReplace characters in the selected lines.
<shift-up>cursor_upMove the cursor up one line.
<shift-down>cursor_downMove the cursor one line down.

Char Selection

KeyActionDescription
<escape>leave_selectionLeave selection modes and return to normal mode.
^Cleave_selectionLeave selection modes and return to normal mode.
vleave_selectionLeave selection modes and return to normal mode.
Vswitch_selection_modeSwap between LINE and CHAR selection modes.
yyank_charactersYank the selected characters to the paste buffer.
<backspace>cursor_left_with_wrapMove the cursor one position left, wrapping to the previous line.
Ddelete_and_yank_charsDelete and yank the selected characters.
ddelete_and_yank_charsDelete and yank the selected characters.
xdelete_and_yank_charsDelete and yank the selected characters.
sdelete_chars_and_enter_insertDelete and yank the selected characters and then enter insert mode.
rreplace_charsReplace the selected characters.
Ainsert_at_end_of_selectionMove the cursor to the end of the selection and enter insert mode.

Col Selection

KeyActionDescription
<escape>leave_selectionLeave selection modes and return to normal mode.
^Cleave_selectionLeave selection modes and return to normal mode.
^Vleave_selectionLeave selection modes and return to normal mode.
Ienter_col_insertEnter column insert mode.
aenter_col_insert_afterEnter column insert mode after the selected column.
ddelete_at_columnDelete from the current column backwards (<backspace>) or forwards (<del>).

Col Insert

KeyActionDescription
<escape>leave_selectionLeave selection modes and return to normal mode.
^Cleave_selectionLeave selection modes and return to normal mode.
<backspace>delete_at_columnDelete from the current column backwards (<backspace>) or forwards (<del>).
<del>delete_at_columnDelete from the current column backwards (<backspace>) or forwards (<del>).
<enter>(unbound)(unbound)
^W(unbound)(unbound)
^Vinsert_char_at_columnInsert a character on all lines at the current column.
<left>column_leftMove the column cursor left.
<right>column_rightMove the column cursor right.
<up>column_upMove the column cursor up.
<down>column_downMove the column cursor down.
KeyActionDescription
^Bgo_page_upJump up a screenfull.
^Fgo_page_downJump down a screenfull.
:enter_commandEnter command input mode.
/enter_searchEnter search mode.
?enter_searchEnter search mode.
nsearch_nextJump to the next search match.
Nsearch_prevJump to the preceding search match.
jcursor_downMove the cursor one line down.
kcursor_upMove the cursor up one line.
hcursor_leftMove the cursor one character to the left.
lcursor_rightMove the cursor one character to the right.
bword_leftMove the cursor left to the previous word.
wword_rightMove the cursor right to the start of the next word.
Bbig_word_leftMove the cursor left to the previous WORD.
Wbig_word_rightMove the cursor right to the start of the next WORD.
<shift_horizontallyShift the current line or screen view horizontally, depending on settings.
>shift_horizontallyShift the current line or screen view horizontally, depending on settings.
ffind_character_forwardFind a character forward on the current line and place the cursor on (f) or before (t) it.
Ffind_character_backwardFind a character backward on the current line and place the cursor on (F) or after (T) it.
tfind_character_forwardFind a character forward on the current line and place the cursor on (f) or before (t) it.
Tfind_character_backwardFind a character backward on the current line and place the cursor on (F) or after (T) it.
Ggoto_lineJump to the requested line.
*search_under_cursorSearch for the word currently under the cursor.
<space>go_page_downJump down a screenfull.
%jump_to_matching_bracketFind and jump to the matching bracket for the character under the cursor.
{jump_to_previous_blankJump to the preceding blank line before the cursor.
}jump_to_next_blankJump to the next blank line after the cursor.
$cursor_endMove the cursor to the end of the line, or past the end in insert mode.
<pipe>cursor_homeMove the cursor to the beginning of the line.
<enter>next_line_non_whitespaceJump to the first non-whitespace character in the next next line.
^first_non_whitespaceJump to the first non-whitespace character in the current line.
0cursor_homeMove the cursor to the beginning of the line.

Escape (Select, Insert)

KeyActionDescription
<f1>toggle_numbersToggle the display of line numbers.
<f2>toggle_indentToggle smart indentation.
<f3>toggle_gutterToggle the display of the revision status gutter.
<f4>toggle_smartcompleteToggle smart completion.
<mouse>handle_mouseProcess mouse actions.
<mouse-sgr>handle_mouse_sgrProcess SGR-style mouse actions.
<up>cursor_upMove the cursor up one line.
<down>cursor_downMove the cursor one line down.
<right>cursor_rightMove the cursor one character to the right.
<ctrl-right>big_word_rightMove the cursor right to the start of the next WORD.
<shift-right>word_rightMove the cursor right to the start of the next word.
<alt-right>expand_split_rightMove the view split divider to the right.
<alt-shift-right>use_right_bufferSwitch to the right split view.
<left>cursor_leftMove the cursor one character to the left.
<ctrl-left>big_word_leftMove the cursor left to the previous WORD.
<shift-left>word_leftMove the cursor left to the previous word.
<alt-left>expand_split_leftMove the view split divider to the left.
<alt-shift-left>use_left_bufferSwitch to the left split view.
<home>cursor_homeMove the cursor to the beginning of the line.
<end>cursor_endMove the cursor to the end of the line, or past the end in insert mode.
<page-up>go_page_upJump up a screenfull.
<page-down>go_page_downJump down a screenfull.
^ZsuspendSuspend bim and the rest of the job it was run in.

Command

KeyActionDescription
<enter>command_acceptAccept the command input and run the requested command.
<tab>command_tab_complete_bufferComplete command names and arguments in the input buffer.
<up>command_scroll_historyScroll through command input history.
<down>command_scroll_historyScroll through command input history.
KeyActionDescription
<enter>search_acceptAccept the search term and return to the previous mode.
<up>(unbound)(unbound)
<down>(unbound)(unbound)
KeyActionDescription
<escape>command_discardDiscard the input buffer and cancel command or search.
^Ccommand_discardDiscard the input buffer and cancel command or search.
<backspace>command_backspaceErase the character before the cursor in the input buffer.
^Wcommand_word_deleteDelete the previous word from the input buffer.
<mouse>eat_mouse(temporary) Read, but ignore mouse input.
<left>command_cursor_leftMove the cursor one character left in the input buffer.
<ctrl-left>command_word_leftMove to the start of the previous word in the input buffer.
<right>command_cursor_rightMove the cursor one character right in the input buffer.
<ctrl-right>command_word_rightMove to the start of the next word in the input buffer.
<home>command_cursor_homeMove the cursor to the start of the input buffer.
<end>command_cursor_endMove the cursor to the end of the input buffer.