From e54d2fd8db515e51accf00527767ed3e49c0bdd3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 27 Oct 2018 10:54:45 +0200 Subject: vimrc: Add clipboard copy/paste mappings Signed-off-by: Florian Pritz --- .vimrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 23430f9..12607e1 100644 --- a/.vimrc +++ b/.vimrc @@ -200,6 +200,18 @@ nnoremap gj nnoremap j gj nnoremap k gk +" " Copy to clipboard +vnoremap y "+y +nnoremap Y "+yg_ +nnoremap y "+y +nnoremap yy "+yy + +" " Paste from clipboard +nnoremap p "+p +nnoremap P "+P +vnoremap p "+p +vnoremap P "+P + " Get the commit responsible for the current line nmap :call BlameCurrentLine() @@ -300,7 +312,7 @@ autocmd FileType unite call s:unite_settings() nnoremap w :Unite -buffer-name=files -start-insert file nnoremap qq :Unite -buffer-name=files -start-insert file_rec/async:! -nnoremap y :Unite -buffer-name=yank history/yank +nnoremap yu :Unite -buffer-name=yank history/yank nnoremap b :Unite -buffer-name=buffer buffer " neoyank -- cgit v1.2.3-24-g4f1b