16 lines
298 B
Markdown
16 lines
298 B
Markdown
---
|
|
date: 2021-03-14T14:34
|
|
tags:
|
|
- vim
|
|
---
|
|
|
|
# the `:normal` command runs normal commands on multiple lines
|
|
|
|
The `:normal` command is a useful way to run the same Normal mode command
|
|
on multiple lines.
|
|
|
|
```vim
|
|
:%normal i# <CR>
|
|
```
|
|
|
|
The command above will comment out an entire Python source file.
|