Wiki

by yszheda

View project onGitHub

Tip 4: Act, Repeat, Reverse

Return to the top: <<Practical Vim>>

Repeatable Actions and How to Reverse Them

Intent Act Repeat Reverse
Make a change {edit} . u
Scan line for next character f{char}t{char} ; ,
Scan line for previous character F{char}T{char} ; ,
Scan document for next match /pattern<CR> n N
Scan document for previous match ?pattern<CR> n N
Perform substitution :s/target/replacement & u
Execute a sequence of changes qx{changes}q @x u