aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-10-16 04:18:44 +0300
committerYaroslav <contact@yaroslavps.com>2019-10-16 04:18:44 +0300
commit99a461da7c1065c18628fbd7314a135a41d5707e (patch)
tree9ce08ac76ebe8ba701801d22c71d030f0315118d /dotfiles
parent1221666455ca1fbfed67465d292f11ef936ecc05 (diff)
downloadswayrice-99a461da7c1065c18628fbd7314a135a41d5707e.tar.gz
swayrice-99a461da7c1065c18628fbd7314a135a41d5707e.zip
easier copy and pasting to clipboard in neovim/vim
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.vimrc14
1 files changed, 11 insertions, 3 deletions
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 <C-c> "*y :let @+=@*<CR>
-" Copy and paste to clipboard
- vmap <F3> "+y
- map <F4> "+p
+" Copy to clipboard
+ vnoremap <leader>y "+y
+ nnoremap <leader>Y "+yg_
+ nnoremap <leader>y "+y
+ nnoremap <leader>yy "+yy
+
+" Paste from clipboard
+ nnoremap <leader>p "+p
+ nnoremap <leader>P "+P
+ vnoremap <leader>p "+p
+ vnoremap <leader>P "+P
" Enable Goyo by default for mutt writting
" Goyo's width will be the line limit in mutt.