map <leader>c and d to use black hole register
dblume

dblume commited on 2023-01-16 23:20:11
Showing 1 changed files, with 6 additions and 0 deletions.

... ...
@@ -40,6 +40,12 @@ nnoremap <C-j> <C-w>j
40 40
 nnoremap <C-k> <C-w>k
41 41
 nnoremap <C-l> <C-w>l
42 42
 
43
+" https://levelup.gitconnected.com/7-surprising-vim-tricks-that-will-save-you-hours-b158d23fe9b7
44
+nnoremap <leader>d "_d
45
+nnoremap <leader>D "_D
46
+nnoremap <leader>c "_c
47
+nnoremap <leader>C "_C
48
+
43 49
 " clear search highlights
44 50
 nnoremap <cr> :noh<cr><cr>
45 51
 
46 52