From 9f90160ce7b0b1d05dcb2ea0c9a6b1144a4024af Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 17 Mar 2023 14:18:36 +0000 Subject: added vim stuff for copy and paste --- vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index fe7d05b..827efe0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -445,6 +445,13 @@ command! -bang -nargs=* Rg nnoremap a :Rg +" from https://www.youtube.com/watch?v=E_rbfQqrm7g +" easier copy and pasting to and from external in vim! +" this copies to clipboard and primary selection +vn remap "*y let @+=@* +" make sure you are in normal mode for this to work, I think. +map "+P + "" Quick Editing vimrc nnoremap ev sjL:e $MYVIMRC -- cgit v1.2.3