summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-10-27 10:54:45 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-10-27 10:54:45 +0200
commite54d2fd8db515e51accf00527767ed3e49c0bdd3 (patch)
treeae512dc14ee9b54b0edcdc941102f1e4b99abd75
parent998f14f83eeb89e945b6b603789e75be1ffe12d9 (diff)
downloaddotfiles-e54d2fd8db515e51accf00527767ed3e49c0bdd3.tar.gz
dotfiles-e54d2fd8db515e51accf00527767ed3e49c0bdd3.tar.xz
vimrc: Add clipboard copy/paste mappings
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.vimrc14
1 files changed, 13 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 23430f9..12607e1 100644
--- a/.vimrc
+++ b/.vimrc
@@ -200,6 +200,18 @@ nnoremap <Down> gj
nnoremap j gj
nnoremap k gk
+" " 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
+
" Get the commit responsible for the current line
nmap <c-b> :call BlameCurrentLine()<cr>
@@ -300,7 +312,7 @@ autocmd FileType unite call s:unite_settings()
nnoremap <leader>w :<C-u>Unite -buffer-name=files -start-insert file<cr>
nnoremap <leader>qq :<C-u>Unite -buffer-name=files -start-insert file_rec/async:!<cr>
-nnoremap <leader>y :<C-u>Unite -buffer-name=yank history/yank<cr>
+nnoremap <leader>yu :<C-u>Unite -buffer-name=yank history/yank<cr>
nnoremap <leader>b :<C-u>Unite -buffer-name=buffer buffer<cr>
" neoyank