I love the simplicity of composing commands that have semantic meaning. Like, for example cib
reads like a sentence change in brackets
- wonderful.
But why does vim need to copy the old contents into my clipboard? Nowhere in that command have I suggested I want to copy it and the problem goes much deeper.
dw
diw
etc all copy to the my clipboard/register as well. Why? It seems like this abandons the semantic value of these commands and I would say it is unexpected behaviour.
Am I using these commands wrong, or is there some way to completely disable this feature? Currently I have done a few remappings like this:
nnoremap dd "_dd
nnoremap cc "_cc
but I would like to not do that for every single possible combination of non-explicit copying.
By default, most of the commands you're talking about use the unnamed register,
"
. It sounds like you're dealing with the clipboard being overwritten for all these things too, which can be a symptom of settingclipboard
tounnamed
orunnamed_plus
.To go back to standard, you can probably do
set clipboard=
, if the output ofset clipboard?
is one of those two options.