You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cutlass overrides the delete operations to actually just delete and not affect the current yank.
It achieves this by overriding the following keys to always use the black hole register: c, cc, C, s, S, d, dd, D, x, X. Note that if you have already mapped these keys to something else (like we do below with x) then it will not change it again.
After including this plugin, all of these operations will simply delete and not cut. However, you will still want to have a key for 'cut', which you can add by including the following to your .vimrc:
nnoremapmdxnoremapmdnnoremapmmddnnoremapMD
m here can be thought of as 'move'. Note that you will be shadowing the 'add mark' key if you go with this binding. Or you might want to use the x key instead:
nnoremapxdxnoremapxdnnoremapxxddnnoremapXD
And then use dl instead of x every time you want to delete a single character. You might also consider using s with vim-subversive and then using cl as a replacement in the same way.