aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-10-27 04:36:32 +0300
committerYaroslav <contact@yaroslavps.com>2019-10-27 04:36:32 +0300
commitb4cf9a6908bde95c8265e69daab7bc296c15ac43 (patch)
tree41c57db4cd99055ffc8cb1bd4078d5cf3bd0b2c7
parent212dcd0bf753f08c0127a26a71b673c734b45c02 (diff)
downloadvimrice-b4cf9a6908bde95c8265e69daab7bc296c15ac43.tar.gz
vimrice-b4cf9a6908bde95c8265e69daab7bc296c15ac43.zip
easier copy/pasting to clipboard
-rw-r--r--.vimrc14
1 files changed, 11 insertions, 3 deletions
diff --git a/.vimrc b/.vimrc
index aeadd1e..2fe47f6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -69,9 +69,17 @@ let mapleader =" "
" Copy selected text to system clipboard (requires gvim installed):
vnoremap <C-c> "*y :let @+=@*<CR>
-" Copy and paste to clipboard
- vmap <F3> "+y
- map <F4> "+p
+" Copy to clipboard
+ vnoremap <leader>y "+y
+ nnoremap <leader>Y "+yg_
+ nnoremap <leader>y "+y
+ nnoremap <leader>yy "+yy
+
+" Paste from clipboard
+ nnoremap <leader>p "+p
+ nnoremap <leader>P "+P
+ vnoremap <leader>p "+p
+ vnoremap <leader>P "+P
" Enable Goyo by default for mutt writting
" Goyo's width will be the line limit in mutt.