Merge pull request #143 from CyrusYip/patch-8

space is unneeded in Black Hole Deletion
This commit is contained in:
Igor Irianto 2022-01-31 10:37:14 -06:00 committed by GitHub
commit 961ec2b99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: 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. By passing `_` after `d`, Vim won't use up your scratch registers.