In Vim is there a way to delete without putting text in the register?

To delete something without saving it in a register, you can use the “black hole register”:

"_d

Of course you could also use any of the other registers that don’t hold anything you are interested in.

Leave a Comment