mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-10 05:04:13 +00:00
Merge pull request #143 from CyrusYip/patch-8
space is unneeded in Black Hole Deletion
This commit is contained in:
commit
961ec2b99a
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ console.log("three: ", three);
|
|||
Recall from the register chapter that deleted texts are stored inside the numbered registers (granted they are sufficiently large ). Whenever you run `:g/console/d`, Vim stores the deleted lines in the numbered registers. If you delete many lines, you can quickly fill up all the numbered registers. To avoid this, you can always use the black hole register (`"_`) to *not* store your deleted lines into the registers. Run:
|
||||
|
||||
```
|
||||
:g/console/d _
|
||||
:g/console/d_
|
||||
```
|
||||
|
||||
By passing `_` after `d`, Vim won't use up your scratch registers.
|
||||
|
|
Loading…
Reference in a new issue