aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2017-11-15 20:03:19 -0700
committerAdam Hovorka <[email protected]>2017-11-15 20:03:19 -0700
commit9fb86fce6b97733f184d911c9d3c1efddd4ec965 (patch)
treebdd76213eb392f8720923872a1e045568fcd3c27
parentfa73b6181e439fa0c1c9597743d3f964d9156530 (diff)
Use proper register for system clipboard (vim)
-rw-r--r--base/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/vimrc b/base/vimrc
index 2117d86..befd96e 100644
--- a/base/vimrc
+++ b/base/vimrc
@@ -142,9 +142,9 @@ nnoremap <leader>l :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l>
nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
-noremap <leader>y "*y
-noremap <leader>yy "*Y
-noremap <leader>p :set paste<CR>:put *<CR>:set nopaste<CR>
+noremap <leader>y "+y
+noremap <leader>yy "+Y
+noremap <leader>p :set paste<CR>:put +<CR>:set nopaste<CR>
noremap <silent> + :s/^\s*/&\/\//<CR>:noh<CR>
noremap <silent> - :s/^\(\s*\)\/\//\1/<CR>:noh<CR>