Table of Contents
Modifying Text
-
vi-add-eol (unbound) (A)
-
Move to the end of the line and enter insert mode.
-
vi-add-next (unbound) (a)
-
Move forward one character and enter insert mode.
-
backward-delete-char (^H ^?) (^?)
-
Delete the character behind the cursor.
-
vi-backward-delete-char (unbound) (X)
-
Delete the character behind the cursor, without changing lines.
-
backward-delete-word
-
Delete the word behind the cursor.
-
backward-kill-line
-
Kill from the beginning of the line to the cursor position.
-
backward-kill-word (^W ESC-^H ESC-^?)
-
Kill the word behind the cursor.
-
vi-backward-kill-word (unbound) (^W)
-
Kill the word behind the cursor.
-
capitalize-word (ESC-C ESC-c)
-
Capitalize the current word and move past it.
-
vi-change (unbound) (c)
-
Read a movement command from the keyboard, and kill from the cursor
position to the endpoint of the movement. Then enter insert mode. If
the command is vichange, kill the current line.
-
vi-change-eol (unbound) (C)
-
Kill to the end of the line and enter insert mode.
-
vi-change-whole-line (unbound) (S s)
-
Kill the current line and enter insert mode.
-
copy-region-as-kill (ESC-W ESC-w)
-
Copy the area from the cursor to the mark to the kill buffer.
-
copy-prev-word (ESC-^_)
-
Duplicate the word behind the cursor.
-
vi-delete (unbound) (d)
-
Read a movement command from the keyboard, and kill from the cursor
position to the endpoint of the movement. If the command is
vi-delete, kill the current line.
-
delete-char (unbound) (x)
-
Delete the character under the cursor.
-
vi-delete-char (unbound) (x)
-
Delete the character under the cursor.
-
delete-word (ESC-D ESC-d)
-
Delete the current word.
-
down-case-word (ESC-L ESC-l)
-
Convert the current word to all lowercase and move past it.
-
kill-word
-
Kill the current word.
-
gosmacs-transpose-chars
-
Exchange the two characters behind the cursor.
-
vi-indent (unbound) (>)
-
Indent a number of lines.
-
vi-insert (unbound) (i)
-
Enter insert mode.
-
vi-insert-bol (unbound) (I)
-
Move to the beginning of the line and enter insert mode.
-
vi-join (^X^J)
-
Join the current line with the next one.
-
kill-line (^K) (D)
-
Kill from the cursor to the end of the line.
-
vi-kill-line
-
Kill from the cursor to the beginning of the line.
-
kill-region
-
Kill from the cursor to the mark.
-
kill-buffer (^X^K) (^U)
-
Kill the entire buffer.
-
kill-whole-line (^U) (unbound)
-
Kill the current line.
-
vi-match-bracket (^X^B) (%)
-
Move to the bracket character (one of {}, (), or []) that matches the
one under the cursor.
-
vi-open-line-above (unbound) (O)
-
Open a line above the cursor and enter insert mode.
-
vi-open-line-below (unbound) (o)
-
Open a line below the cursor and enter insert mode.
-
vi-oper-swap-case
-
Read a movement command from the keyboard, and swap the case of all
characters from the cursor position to the endpoint of the
movement. If the movement command is vi-oper-swap-case, swap
the case of all characters on the current line.
-
overwrite-mode (^X^O)
-
Toggle between overwrite mode and insert mode.
-
vi-put-after (unbound) (p)
-
Insert the contents of the kill buffer after the cursor.
-
quoted-insert (^V)
-
Insert the next character typed into the buffer literally.
-
quote-line (ESC-')
-
Quote the current line; that is, put a ` character at the beginning
and the end, and convert all ` characters to `\''.
-
quote-region (ESC-")
-
Quote the region from the cursor to the mark.
-
vi-replace (unbound) (R)
-
Enter overwrite mode.
-
vi-repeat-change (unbound) (.)
-
Repeat the last vi mode text modification.
-
vi-replace-chars (unbound) (r)
-
Replace the character under the cursor with a character read from the
keyboard.
-
self-insert (printable characters)
-
Put a character in the buffer at the cursor position.
-
self-insert-unmeta (ESC-^I ESC-^J ESC-^M)
-
Put a character in the buffer after stripping the meta bit and
converting ^M to ^J.
-
vi-substitute (unbound) (s)
-
Substitute the next character(s).
-
vi-swap-case (unbound) (~)
-
Swap the case of the character under the cursor and move past it.
-
transpose-chars (^T)
-
Exchange the two characters to the left of the cursor if at end of
line, else exchange the character under the cursor with the character
to the left.
-
transpose-words (ESC-T ESC-t)
-
Exchange the current word with the one before it.
-
vi-unindent (unbound) (<)
-
Unindent a number of lines.
-
up-case-word (ESC-U ESC-u)
-
Convert the current word to all caps and move past it.
-
yank (^Y) (P)
-
Insert the contents of the kill buffer at the cursor position.
-
yank-pop (ESC-y) (unbound)
-
Remove the text just yanked, rotate the kill-ring, and yank the new
top. Only works following yank or yankpop.
-
vi-yank (unbound) (y)
-
Read a movement command from the keyboard, and copy the region from
the cursor position to the endpoint of the movement into the kill
buffer. If the command is viyank, copy the current
line.
-
vi-yank-eol (unbound) (Y)
-
Copy the region from the cursor position to the end of the line into
the kill buffer.
Arguments
-
digit-argument (ESC-0..ESC-9) (0-9)
-
Start a new numeric argument, or add to the current one.
-
neg-argument (ESC-- unbound)
-
Changes the sign of the following argument.
-
universal-argument
-
Multiply the argument of the next command by 4.
Mark D. Borges