Deleting a character in normal mode with Del places it the yank buffer. How can I change this behavior to keep the buffer unchanged? For example, yank it to the black hole buffer as one can when using the d
command?
You can change the yank buffer with "<character>
. The "black hole" buffer is _
, so the command you want would be "_d
etc. Note that this is per-deletion (yank, etc.).
You can create a simple shortcut in your .vimrc
that does this with the Del by default.
nnoremap <Del> "_x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With