Remove CopyPaste mode. Let clipboard handle it.

This commit is contained in:
Sage Vaillancourt 2021-10-06 13:50:49 -04:00
parent 403f1a8a5f
commit def543131b
1 changed files with 0 additions and 16 deletions

16
.vimrc
View File

@ -158,22 +158,6 @@ if has ("autocmd")
augroup END
endif
let s:copypastemode = 0
function! ToggleCopyPaste()
if s:copypastemode
set nopaste
set number
set relativenumber
let s:copypastemode = 0
else
set paste
set nonumber
set norelativenumber
let s:copypastemode = 1
endif
endfunction
nnoremap <F3> :call ToggleCopyPaste()<CR>
inoremap <F3> <Esc>:call ToggleCopyPaste()<CR>i
nnoremap <RightMouse> p
inoremap <RightMouse> <Esc>p