:g/pattern/d \_
Last active
July 4, 2024 22:34
-
-
Save petergi/428b02b5fa0517a4d1310832d2d0c219 to your computer and use it in GitHub Desktop.
When a line is deleted, it is first copied to a register—since no register is specified, the default (unnamed) register is used. If many thousands of lines are deleted, the copy process can take a significant time. To avoid that waste of time, the blackhole register (_) can be specified because any copy or cut into the blackhole register perform…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment