Vim commands

Every Vim command Vim My Mac gives your text fields, by category. In the Accessibility and Hybrid Families they all work. Keystroke sends macOS editing keys instead, so the commands marked here fail there, or work only in part.

Motions

Move the cursor in Normal mode, grow the selection in Visual mode, or say what an operator acts on.

h j k l Left, down, up, right. j and k move by line, not by how the field wraps.
w b e The next word, back a word, the end of the word. Keystroke: macOS word ends
W B E The same, by runs of anything but spaces. Not in Keystroke
ge The end of the previous word.
gE The end of the previous run of anything but spaces. Not in Keystroke
0 ^ $ The start of the line, its first character that isn't a space, its end.
g_ The last character on the line that isn't a space. Not in Keystroke
gg G The first line, the last line. With a count, that line.
f F t T To the next or previous character you type, or just before it. Not in Keystroke
; , The last f, F, t or T again, the same way or back. Not in Keystroke
gj gk Down or up a line as the field wraps it.
% The bracket that matches the one at the cursor. Not in Keystroke
( ) Back or on a sentence. Not in Keystroke
{ } Back or on a paragraph. Not in Keystroke

Operators and edits

Change the text in Normal mode.

d c y Delete, change or yank, then a motion or a text object: dw, ciw, y$.
dd cc yy Delete, change or yank the whole line.
D C Delete or change to the end of the line.
Y Yank the whole line.
x X Delete the character at the cursor, or before it.
s S Change the character at the cursor, or the whole line.
r Replace the character at the cursor with the next one you type.
p P Put what you yanked after the cursor, or before it.
i a Insert before the cursor, or after it.
I A Insert at the line's first character that isn't a space, or at its end.
o O Insert on a new line below, or above.
J Join the next line onto this one.
~ Switch the case of the character at the cursor. Not in Keystroke
u ⌃R Undo and redo, as ⌘Z and ⇧⌘Z do.
. Repeat the last change. Keystroke: deletes only

Text objects

After d, c or y, or in Visual mode: the thing around the cursor.

iw A word. Keystroke: after d c y only
aw A word and the space after it. Not in Keystroke
iW aW A run of anything but spaces, without or with the space after it. Not in Keystroke
is as A sentence, without or with the space after it. Not in Keystroke
ip ap A paragraph, without or with the blank line after it. Not in Keystroke
i' a' i" a" i` a` Inside quotes, or with the quotes. Not in Keystroke
i( a( ib ab Inside parentheses, or with them. Not in Keystroke
i[ a[ Inside square brackets, or with them. Not in Keystroke
i{ a{ iB aB Inside braces, or with them. Not in Keystroke
i< a< Inside angle brackets, or with them. Not in Keystroke

Visual mode

Any motion or text object grows the selection, then one of these acts on it.

v V Visual mode by character, or by whole lines. The same key again leaves; the other switches.
o Move the cursor to the other end of the selection. Not in Keystroke
d x Delete the selection.
c s Change the selection.
y Yank the selection.
p P Replace the selection with what you yanked.
J Join the selected lines.
~ u U Switch the selection's case, or make it lower or upper case. Not in Keystroke

Counts and repeat

A count goes before a command or inside it: 3w moves three words, and 2d3w deletes six. Counts go up to 999. In Keystroke most counts on gg, G and $ don't work.

Not here

: commands, macros, R, ⌃V, H M L, the z and ⌃D ⌃U scroll commands, gu gU, << >>, gi and gv. In a browser, zz and the other keys of Browse mode are on the home page.