PracticalVim Tip27 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 27: Meet Vim's Command Line

Return to the top: <>

Ex Commands That Operate on the Text in a Buffer

| Command | Effect | | `:[range]delete [x]` | Delete specified lines [into] | | `:[range]yank [x]` | Yank specified lines [into] | | `:[line]put [x]` | Put the text from register x after the specified line | | `:[range]copy {address}` | Copy the specified lines to below the line specified by {address} | | `:[range]move {address}` | Move the specified lines to below the line specified by {address} | | `:[range]join` | Join the specified lines | | `:[range]normal {commands}` | Execute Normal mode {commands} on each specified line | | `:[range]substitute/{pattern}/{string}/[flags]` | Replace occurrences of {pattern} with {string} on each specified lines | | `:[range]global/{pattern}/[cmd]` | Execute the Ex command [cmd] on all specified lines where the {pattern} matches |

References:

Ex Commands Strike Far and Wide

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