diff --git a/options.vim b/options.vim index ac12914..fff2496 100644 --- a/options.vim +++ b/options.vim @@ -18,7 +18,9 @@ set updatetime=2000 " Clipboard settings, always use clipboard for all delete, yank, change, put " operation, see https://stackoverflow.com/q/30691466/6064933 -set clipboard+=unnamedplus +if !empty(provider#clipboard#Executable()) + set clipboard+=unnamedplus +endif " Disable creating swapfiles, see https://stackoverflow.com/q/821902/6064933 set noswapfile