PracticalVim Tip12 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 12: Combine and Conquer

Return to the top: <>

*Operator + Motion = Action*

References:

| Trigger | Effect | | `c` | Change | | `d` | Delete | | `y` | Yank into register | | `g~` | Swap case | | `gu` | Make lowercase | | `gU` | Make uppercase | | `>` | Shift right | | `<` | Shift left | | `=` | Autoindent | | `!` | Filter {motion} lines through an external program |

Custom Operations Work with Existing Motions

Example :commentary.vim

`\\{motion}`

References:

Custom Motions Work with Existing Operations

Example: textobj-entire plugin

References:

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