commit eaea166eb4d8c4ba457ed14947924c226d4c99f9 (patch)
parent e1a748f592682708e3c2a260e54820bceb1dbb68
Author: Alex Karle <alex@karle.co>
Date: Fri, 2 Aug 2019 23:31:07 -0400
vim: use + instead of * register for pasting
This seems to be the Linux clipboard for X, and I've had much better
luck copy/pasting to and from + than *.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim
@@ -62,7 +62,7 @@ endfunction
function! vimrc#SetPasteAndPasteFromClipboard() abort
set paste
- normal! "*p
+ normal! "+p
set nopaste
endfunction
diff --git a/vim/vimrc b/vim/vimrc
@@ -193,7 +193,7 @@ nnoremap <silent> <leader>G :call vimrc#GitGrepWordUnderCursor()<CR>:copen<CR>
nnoremap <leader>w :set list!<CR>
" Yank entire file
-nnoremap <leader>y gg"*yG<C-O><C-O>
+nnoremap <leader>y gg"+yG<C-O><C-O>
" Edit vimrc (TODO: get working for neovim)
nnoremap <leader>V :edit $MYVIMRC<CR>