PracticalVim Tip23 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 23: Prefer Operators to Visual Commands Where Possible

Return to the top: <>

`U`: converts the selected character to uppercase.

Example: Uppercasing in Visual Mode

References:

Using a Visual Operator

When a Visual mode command is repeated, it affects the same range of text.

Example: problem raises when using `j.`

References:

Using a Normal Operator

The Visual mode `U` command has a Normal mode equivalent: `gU{motion}`.

Example:

References:

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