PracticalVim Tip30 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 30: Run Normal Mode Commands Across a Range

Return to the top: <>

Example: append a semicolon at the end of a series of line.

Way #1: dot command

Way #2: Visual mode + `:normal` Ex command

Way #3: `:normal` Ex command

Example: comment out the entire JavaScript file.

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