From 4e17d440fe461cc2648366e8732f601a83e5df37 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Fri, 28 Jan 2022 02:39:02 +0800 Subject: [PATCH] space is unneeded in Black Hole Deletion --- ch13_the_global_command.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch13_the_global_command.md b/ch13_the_global_command.md index 2d0d621..9a433dd 100644 --- a/ch13_the_global_command.md +++ b/ch13_the_global_command.md @@ -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.