I don’t want the ‘Delete’ button to yank the characters I delete.
I can give an example:
When cutting and pasting some rows to elsewhere.
code
code
code
code2
code2
code2
I want to cut code and paste it below code2. It is my habbit to first do x to the 3 lines of code and after that to delete the blank lines between code and code2 with the delete button => when doing this my register changes to empty row.
Does anyone has a suggestion? Thanks
Use the “black hole register”:
To delete those blank lines, select them in visual mode and use the command above.