PracticalVim Tip95 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 95: Swap Two or More Words

Return to the top: <>

Example: swap "dog" and "man"

Return the Other Word

creating two key-value pairs

Match Both Words

All Together Now

fetch the captured text by calling the `submatch()` function in Vim script:

References:

Abolish.vim: A Supercharged Substitute Command

abolish.vim

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