From 70ee0d98d9ab97287a3391c82c7c028a44a37f29 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 18 Dec 2021 17:36:15 +0100 Subject: [PATCH] keymaps: Add usual clipboard keymaps --- keymaps.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/keymaps.vim b/keymaps.vim index 9f9f6aa..398649d 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -1,6 +1,15 @@ """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Global settings +if has('clipboard') + " Ordinary ctrl+{c,x,v} using system clipboard register +. We use autocmd to + " override plugin keymaps. + autocmd VimEnter * vnoremap "+y + autocmd VimEnter * vnoremap "+x + autocmd VimEnter * nnoremap :put + + autocmd VimEnter * inoremap + +endif + nnoremap :Denite file/rec nnoremap / :Denite grep:. nnoremap s :Denite buffer -- 2.39.5