From 99a461da7c1065c18628fbd7314a135a41d5707e Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 16 Oct 2019 04:18:44 +0300 Subject: easier copy and pasting to clipboard in neovim/vim --- dotfiles/.vimrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index aeadd1e..2fe47f6 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.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