Skip to content

Commit 42247c8

Browse files
committed
Replace vim-system-copy plugin with remaps
This commit removes the `vim-system-copy` plugin since the default `cp` binding conflicts with `vim-fireplace`. Instead, it creates two custom remaps `<Leader>y` to yank to system clipboard and `<Leader>p` to paste from system clipboard. Hat tip: https://vi.stackexchange.com/a/96/33828
1 parent 11862f6 commit 42247c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

vimrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ call plug#begin('~/.vim/plugged')
1212
" Asynchronous Lint Engine
1313
Plug 'dense-analysis/ale'
1414

15-
" Mappings for copying / pasting text to the system clipboard
16-
Plug 'christoomey/vim-system-copy'
17-
1815
" Enable REPL-driven development in Clojure
1916
Plug 'tpope/vim-fireplace'
2017

@@ -70,6 +67,12 @@ set number
7067
" Copy current relative file path (src/foo.txt) to system clipboard
7168
nnoremap <leader>cf :let @*=expand("%")<CR>
7269
70+
" Copy (yank) to system clipboard
71+
noremap <Leader>y "*y
72+
73+
" Paste from system clipboard
74+
noremap <Leader>p "*p
75+
7376
" AUTOCOMMANDS
7477
" Put these in an autocmd group, so that we can delete them easily.
7578
augroup vimrc

0 commit comments

Comments
 (0)