diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-10-27 10:54:45 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-10-27 10:54:45 +0200 |
commit | e54d2fd8db515e51accf00527767ed3e49c0bdd3 (patch) | |
tree | ae512dc14ee9b54b0edcdc941102f1e4b99abd75 | |
parent | 998f14f83eeb89e945b6b603789e75be1ffe12d9 (diff) | |
download | dotfiles-e54d2fd8db515e51accf00527767ed3e49c0bdd3.tar.gz dotfiles-e54d2fd8db515e51accf00527767ed3e49c0bdd3.tar.xz |
vimrc: Add clipboard copy/paste mappings
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .vimrc | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |