From 13739420b7f336316e9f846aa28b079f2ba6acf7 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 20 Nov 2018 09:52:54 +0800 Subject: vim: Add mappings to yank to / paste from clipboard --- _vim/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_vim/vimrc b/_vim/vimrc index ccbaab8..0ad9066 100644 --- a/_vim/vimrc +++ b/_vim/vimrc @@ -289,6 +289,10 @@ noremap pp :setlocal paste! noremap inoremap +" Copy to and paste from the system clipboard +vnoremap y "+y +noremap p "+p + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Helper functions -- cgit v1.2.2