obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

how to apply delete not cut?

Open remoire opened this issue 2 years ago • 1 comments

i simply wanted for the delete to not getting into the clipboard founded it affect my workflow so much, as for workarounds i've tried these:

nnoremap dd "_dd nnoremap d "_d

why is it not working? is there some basic principle in obsidian.vimrc that's different of the regular vimrc?

remoire avatar Jul 09 '23 11:07 remoire

there is discussion about that in the following link (see answers before the linked answer for the discussion) where I suggested a partial solution (that uses another plugin, use at your own risk) that only works for dd while disabling d for anything else that is not mapped in the vimrc file (that is, something like dw would not work anymore but you could just use c instead of d or use ctrl+right then ctrl+backspace in insert mode for that one)).

The link : https://github.com/esm7/obsidian-vimrc-support/issues/106#issuecomment-1901995553

userrand avatar Jan 20 '24 09:01 userrand