Add true delete shortcut to vim

Mimicks vifm d for grabbing and cutting, D for true deletion. Works well
to delete a line (e.g. left-over empty) while still keeping last
selection in yank-register. Starts a d-motion, so it can be used with
all motions.
This commit is contained in:
Marty Oehme 2020-01-27 08:38:25 +01:00
parent d08966509a
commit 010ccc8284

View file

@ -15,6 +15,11 @@ nnoremap <BS> <C-^>
" since u undoes, would it not make sense that U redoes?
nnoremap U <C-r>
" d-motion puts the last 'deleted' thing into the default register to paste;
" use D-motion to truly delete something into nothingness and keep whatever
" you want in your register, ready to paste
nnoremap D "_d
" I don't particularly need ex mode (at least, yet) but faster macro access
" is nice
nnoremap Q @