commit 981dbf378921ba7f490d2af66e609864fafcaaac
parent fdd076b40af71154add576a9ee34dc4e4812547d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 8 Jan 2021 09:40:28 +0100
vim: map for yank register
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -907,6 +907,10 @@ cnoremap <c-n> <down>
set wildcharm=<c-z>
cnoremap <expr> <Tab> getcmdtype() =~ '[?/]' ? "<c-g>" : "<c-z>"
cnoremap <expr> <S-Tab> getcmdtype() =~ '[?/]' ? "<c-t>" : "<S-Tab>"
+
+" Easier pasting
+nnoremap <leader>p "0p
+nnoremap <leader>P "0P
" Autocommands {{{1
if has('autocmd')
augroup vimrc_sets