mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-13 22:47:07 +00:00
Normalize the pattern syntax
This commit is contained in:
parent
33cf5d944a
commit
5cf77668ba
1 changed files with 2 additions and 2 deletions
|
@ -72,13 +72,13 @@ console.log("three: ", three);
|
|||
To run the global command on non-matching lines, you can run:
|
||||
|
||||
```
|
||||
:g!/{pattern}/{command}
|
||||
:g!/pattern/command
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
:v/{pattern}/{command}
|
||||
:v/pattern/command
|
||||
```
|
||||
|
||||
If you run `:v/console/d`, it will delete all lines *not* containing "console".
|
||||
|
|
Loading…
Reference in a new issue