Set the clipboard whenever available

This commit is contained in:
Anthony Rose 2024-05-24 11:49:53 +01:00
parent 9aa76ed943
commit 2ddbc3a065

6
vimrc
View file

@ -238,16 +238,18 @@ if has('autocmd')
autocmd BufRead,BufNewFile *.yml set et sw=2 autocmd BufRead,BufNewFile *.yml set et sw=2
endif endif
if has('clipboard')
set clipboard=unnamedplus
endif
if has('folding') if has('folding')
set nofoldenable set nofoldenable
endif endif
if has('gui_running') if has('gui_running')
if has('gui_gtk') if has('gui_gtk')
set clipboard=unnamedplus
set guifont=Monospace\ 10 set guifont=Monospace\ 10
elseif has('gui_win32') elseif has('gui_win32')
set clipboard=unnamed
set guifont=Cascadia_Mono_SemiLight:h10:W350:cANSI:qDRAFT set guifont=Cascadia_Mono_SemiLight:h10:W350:cANSI:qDRAFT
set rop=type:directx set rop=type:directx
endif endif