What del button really meant to be
Correct me if I'm wrong but I really don't know any use case where I would want to cut a single character with the delete
button and paste it.
The default behaviour of delete
is the same as x
. Then it always overwrite the default register... (It ticks me every time I make some manual search and replace)
So here the simple solution:
nnoremap <Del> "_x
Now del
really delete the character ! And if really someone want to cut one character he/she can do it with x
!
Written by gahtune
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#