PracticalVim Tip2 - yszheda/wiki GitHub Wiki

Tip 2: Don't Repeat Yourself

Return to the top: <>

Example: append a semicolon at the end of a series of lines.

The most naive way:

A better way using the dot command:

Reduce extraneous movement:

Two for the Price of One

| Compound Command | Equivalent in Longhand | | `C` | `c$` | | `s` | `cl` | | `S` | `^C` | | `I` | `^i` | | `A` | `$a` | | `o` | `A` | | `O` | `ko` |

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