Do not put the character in the Yankee buffer when pressing 'Del'

Deleting a character in normal mode using Delputs it in the yank buffer. How can I change this behavior to keep the buffer unchanged? For example, keep it in a black hole buffer, how can you use the command d?

+5
source share
1 answer

You can change the yank buffer with "<character>. The black hole buffer _, so the command you want will be "_d, etc. Please note that this is for deletion (yank, etc.).

You can create a simple shortcut in .vimrcthat does this using Delthe default.

nnoremap <Del> "_x
+8
source

All Articles