projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f33862
)
keymaps: Add usual <C-{c,x,v}> clipboard keymaps
author
Stefan Huber <shuber@sthu.org>
Sat, 18 Dec 2021 16:36:15 +0000
(17:36 +0100)
committer
Stefan Huber <shuber@sthu.org>
Sat, 18 Dec 2021 16:36:15 +0000
(17:36 +0100)
keymaps.vim
patch
|
blob
|
history
diff --git
a/keymaps.vim
b/keymaps.vim
index 9f9f6aa1f6c534dd13bb480e3446eadca8b81ce9..398649de79484361557bca6996b108d481ede716 100644
(file)
--- a/
keymaps.vim
+++ b/
keymaps.vim
@@
-1,6
+1,15
@@
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Global settings
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Global settings
+if has('clipboard')
+ " Ordinary ctrl+{c,x,v} using system clipboard register +. We use autocmd to
+ " override plugin keymaps.
+ autocmd VimEnter * vnoremap <C-c> "+y
+ autocmd VimEnter * vnoremap <C-x> "+x
+ autocmd VimEnter * nnoremap <C-v> :put +<cr>
+ autocmd VimEnter * inoremap <C-v> <c-r>+
+endif
+
nnoremap <C-p> :Denite file/rec<cr>
nnoremap <space>/ :Denite grep:.<cr>
nnoremap <space>s :Denite buffer<cr>
nnoremap <C-p> :Denite file/rec<cr>
nnoremap <space>/ :Denite grep:.<cr>
nnoremap <space>s :Denite buffer<cr>