commit cc36c7d098239d4d21138e6c985ac14637d58b0b parent b15cdea74bd6ebd82fb659e6a761f040329bd99e Author: Alex Balgavy <a.balgavy@gmail.com> Date: Fri, 2 Nov 2018 15:39:31 +0100 Vim mappings to change without yanking Diffstat:
M | vim/map.vimrc | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/vim/map.vimrc b/vim/map.vimrc @@ -70,3 +70,13 @@ nnoremap <expr> <silent> 0 col('.') == match(getline('.'),'\S')+1 ? '0' : '^' " Highlight last inserted text nnoremap gV `[v`] + +" Delete without yanking to clipboard +noremap <leader>d "_d + +" Change without yanking to clipboard +nnoremap <leader>C "_c + +" Replace without yanking to clipboard +vnoremap <leader>p "_dP +nnoremap <leader>p "_ddP