Editing actions
Development reference · View source
| Action | Modes | count | register | extend | arg | Position | Description |
|---|---|---|---|---|---|---|---|
append-after | normal, select | — | — | — | — | any | Insert after the selection |
insert-line-start | normal, select | — | — | — | — | any | Insert at line start |
insert-line-end | normal, select | — | — | — | — | any | Insert at line end |
open-line-below | normal, select | — | — | — | — | any | Open a line below |
open-line-above | normal, select | — | — | — | — | any | Open a line above |
replace-char | normal, select | — | — | — | one character | any | Replace selection with a character |
surround-add | normal, select | — | — | — | one character | any | Surround selections with a pair |
surround-replace | normal, select | — | — | — | two characters | any | Replace the surrounding pair |
surround-delete | normal, select | — | — | — | one character | any | Delete the surrounding pair |
toggle-case | normal, select | — | — | — | — | any | Switch case of the selection |
undo | normal, select | repeats | — | — | — | any | Undo the last change |
redo | normal, select | repeats | — | — | — | any | Redo the last change |
yank | normal, select | — | yes | — | — | any | Yank the selection or character |
yank-line | normal, select | — | yes | — | — | any | Yank the lines the selection touches |
paste-after-or-replace | normal, select | address or extent | yes | — | — | any | Replace the selection, or paste after the caret |
paste-after | normal, select | address or extent | yes | — | — | any | Paste after the selection or caret |
replace-with-register | normal, select | — | yes | — | — | any | Replace the selection or character |
paste-before | normal, select | address or extent | yes | — | — | any | Paste before the selection |
indent | normal, select | — | — | — | — | any | Indent the selected lines |
unindent | normal, select | — | — | — | — | any | Unindent the selected lines |
toggle-comments | normal, select, insert, replace | — | — | — | — | any | Comment or uncomment the selected lines |
cut-selection | normal, select | — | yes | — | — | any | Yank, then delete the selection or character |
cut-selection-for-change | normal, select | — | yes | — | — | any | Yank, then change the selection or character |
delete-selection | normal, select | — | — | — | — | any | Delete the selection or character without yanking |
delete-selection-for-change | normal, select | — | — | — | — | any | Delete without yanking, preserving the insertion seam and mode |
trim-trailing-whitespace | normal, select | — | — | — | — | any | Delete trailing whitespace from every selected line |
hard-wrap | normal, select | — | — | — | — | any | Hard-wrap the selection |
reflow | normal, select | — | — | — | — | any | Reflow paragraphs in the selection |
insert-text | normal, select, insert, replace | — | — | — | required text | any | Insert literal text at each caret |
join-selections | normal, select | — | — | — | delimiter | last unless arg | Join the selected lines with a typed delimiter |
join-lines | normal, select | — | — | — | — | any | Join the selected lines, or the line below, with a space |
format-table | normal, select | — | — | — | — | any | Align the columns of the selected table |
delete-word-backward | insert, replace | — | — | — | — | any | Delete the previous word |
delete-word-forward | insert, replace | — | — | — | — | any | Delete the next word |
delete-to-line-start | insert, replace | — | — | — | — | any | Delete to the start of the line |
delete-to-line-end | insert, replace | — | — | — | — | any | Delete to the end of the line |
delete-char-backward | insert, replace | — | — | — | — | any | Delete the previous character |
delete-char-forward | insert, replace | — | — | — | — | any | Delete the next character |
insert-newline | insert, replace | — | — | — | — | any | Insert a new line |
insert-indent | insert, replace | — | — | — | — | any | Insert configured indentation |
insert-other-indent | insert, replace | — | — | — | — | any | Insert the other indentation style |