Remove CopyPaste mode. Let clipboard handle it.
This commit is contained in:
parent
403f1a8a5f
commit
def543131b
16
.vimrc
16
.vimrc
|
@ -158,22 +158,6 @@ if has ("autocmd")
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
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
|
nnoremap <RightMouse> p
|
||||||
inoremap <RightMouse> <Esc>p
|
inoremap <RightMouse> <Esc>p
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue