Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 408 Bytes

tip30.md

File metadata and controls

18 lines (11 loc) · 408 Bytes

Tip30: Run Normal Mode Commands Across a Range

:normal

run a Normal mode command on a series of consecutive lines.

tip30_1 tip30_2

Note: we can use :normal to execute any Normal mode commands.

:%normal A;

append a semicolon at the end of every line of the file.

:%normal i//

comment out an entire file.