aboutsummaryrefslogtreecommitdiffstats
path: root/_vim
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-20 09:52:54 +0800
committerAaron LI <aly@aaronly.me>2018-11-20 09:52:54 +0800
commit13739420b7f336316e9f846aa28b079f2ba6acf7 (patch)
tree6759b252bb6406935691319995f654d193e3308e /_vim
parent39fdace95938b24f66ee9bc7c7efb0a585ed98ce (diff)
downloaddotfiles-13739420b7f336316e9f846aa28b079f2ba6acf7.tar.bz2
vim: Add mappings to yank to / paste from clipboard
Diffstat (limited to '_vim')
-rw-r--r--_vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index ccbaab8..0ad9066 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -289,6 +289,10 @@ noremap <leader>pp :setlocal paste!<cr>
noremap <F1> <Esc>
inoremap <F1> <Esc>
+" Copy to and paste from the system clipboard
+vnoremap <leader>y "+y
+noremap <leader>p "+p
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions