commit f6bbcf989e2cbe4f4130ba1a49bc216d12c5288b
parent 3747378b36079f71dbdca9feceb558b7c67ecd0c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 15 Jul 2020 23:38:45 +0200
vim: insert map to avoid paste hijacking
Former-commit-id: 89c4ef42cd79e6ef00d5dc71b18d445a2aabcae7
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -871,6 +871,9 @@ endif
nnoremap <C-w>Z :tab split<CR>
nnoremap <leader>gg :call input("go line:col> ")->split(":")->cursor()<CR>
+
+" Avoid paste hijacking in insert mode
+inoremap <c-r> <c-r><c-o>
" Autocommands {{{1
if has('autocmd')
augroup vimrc_sets