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:
parent
d08966509a
commit
010ccc8284
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ nnoremap <BS> <C-^>
|
||||||
" since u undoes, would it not make sense that U redoes?
|
" since u undoes, would it not make sense that U redoes?
|
||||||
nnoremap U <C-r>
|
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
|
" I don't particularly need ex mode (at least, yet) but faster macro access
|
||||||
" is nice
|
" is nice
|
||||||
nnoremap Q @
|
nnoremap Q @
|
||||||
|
|
Loading…
Reference in a new issue