vim normal command
This commit is contained in:
parent
9a0195cda7
commit
8d459e5615
1 changed files with 16 additions and 0 deletions
16
d2e178e0.md
Normal file
16
d2e178e0.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
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.
|
Loading…
Add table
Reference in a new issue