aboutsummaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-03-17 14:18:36 +0000
committerMatthew Lemon <y@yulqen.org>2023-03-17 14:18:36 +0000
commit9f90160ce7b0b1d05dcb2ea0c9a6b1144a4024af (patch)
treed5dc77c417818ae532fd4099a499625d6184ee18 /vim
parente2e70a4c360f929103b4899e2a0f44fbb8ae5f63 (diff)
added vim stuff for copy and paste
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc7
1 files changed, 7 insertions, 0 deletions
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 <C-p>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 <C-c> "*y let @+=@*<CR>
+" make sure you are in normal mode for this to work, I think.
+map <C-v> "+P
+
"" Quick Editing vimrc
nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $MYVIMRC<cr>