One-Shot Normal Mode

Ctrl-O runs one normal mode command without leaving insert mode.

Keys: Ctrl-O

Ctrl-O from insert mode lets you fire one normal mode command and snap right back to insertion. The pinnacle of stay-in-flow editing.

One-Shot normal mode

Ctrl-O from insert mode runs exactly one normal mode command, then drops you back into insert mode at the new cursor position. It's the express elevator between modes.

Examples
KeyNote
{key:Ctrl-O}Enter one-shot normal mode
doperator…
w…delete word; back in insert mode
From insert mode Effect
Ctrl-Odiw Delete inner word, stay in insert mode
Ctrl-Ozz Center the screen
Ctrl-O0 Jump to start of line
Ctrl-Op Paste at cursor
Ctrl-Ou Undo last normal mode edit

Worked example β€” Ctrl-O in Insert

One Normal command without leaving Insert.

Step 1 Β·
[missing screenshot insert.one-shot/frame_01.color.svg β€” run python content/render_screenshots.py]
Step 2 Β· Ctrl-O$ Β· Ctrl-O $ β€” jumped to EOL, still in Insert.
[missing screenshot insert.one-shot/frame_02.color.svg β€” run python content/render_screenshots.py]
Step 3 Β· ! Β· Type '!' β€” Insert mode resumes seamlessly.
[missing screenshot insert.one-shot/frame_03.color.svg β€” run python content/render_screenshots.py]

Watch

See also: Exiting Insert Mode, Editing Inside Insert Mode