edit oncerepeatrepeatlet a = 1A;⎋let b = 2j .let c = 3j .One deliberate change, then a rhythm of dots.
Step one is the only thinking. After that the edit is a rhythm you can hold down the file: move, dot, move, dot. Two keystrokes per line beats any amount of retyping.
Vim The dot formula
advanced » Add a semicolon to all three lines using the dot command.
goal
let a = 1;
let b = 2;
let c = 3;
scratch.txt
1 let a = 1
2 let b = 2
3 let c = 3
-- NORMAL -- 1,1
keys
your keystrokes appear here as you press them
NORMAL ~/learn/vim-motions · 1/2 · A;⎋j. real vim keys trail · always esc in-editor

Best on a keyboard

“The dot formula” is a hands-on typing drill — it needs a physical keyboard. Open it on a laptop or desktop to play. You can still browse and read everything here on your phone.

Back to course →
NORMAL ~/memra/learn/vim-motions/the-dot-formula utf-8 LF