PracticalVim Tip11 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 11: Don't Count If You Can Repeat

Return to the top: <>

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.

⚠️ **GitHub.com Fallback** ⚠️