Wiki

by yszheda

View project onGitHub

Tip 11: Don't Count If You Can Repeat

Return to the top: <<Practical Vim>>

Example: compare the following three ways of deleting two words

Way #1: d2w

Way #2: 2dw

Way #3: dw.

Here the author prefers the third one because he thinks that counting is tedious.

Use a Count When It Matters

Here the author prefers using the count because he thinks that counting gives us a clean and coherent undo history.