From b4cf9a6908bde95c8265e69daab7bc296c15ac43 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sun, 27 Oct 2019 04:36:32 +0300 Subject: easier copy/pasting to clipboard --- .vimrc | 14 +++++++++++--- 1 file 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 "*y :let @+=@* -" Copy and paste to clipboard - vmap "+y - map "+p +" Copy to clipboard + vnoremap y "+y + nnoremap Y "+yg_ + nnoremap y "+y + nnoremap yy "+yy + +" Paste from clipboard + nnoremap p "+p + nnoremap P "+P + vnoremap p "+p + vnoremap P "+P " Enable Goyo by default for mutt writting " Goyo's width will be the line limit in mutt. -- cgit v1.2.3