From 2ddbc3a065451cf9fab280ca908953ed8195b979 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 24 May 2024 11:49:53 +0100 Subject: [PATCH] Set the clipboard whenever available --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 8de0dcf..6aab4ee 100644 --- a/vimrc +++ b/vimrc @@ -238,16 +238,18 @@ if has('autocmd') autocmd BufRead,BufNewFile *.yml set et sw=2 endif +if has('clipboard') + set clipboard=unnamedplus +endif + if has('folding') set nofoldenable endif if has('gui_running') if has('gui_gtk') - set clipboard=unnamedplus set guifont=Monospace\ 10 elseif has('gui_win32') - set clipboard=unnamed set guifont=Cascadia_Mono_SemiLight:h10:W350:cANSI:qDRAFT set rop=type:directx endif