aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 39ae0aa..a41820c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -446,6 +446,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>