summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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