Skip to content
Shuai YUAN edited this page May 29, 2015 · 1 revision

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

Table of Contents


Clone this wiki locally