Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable clipboard in Vim

Tags:

vim

clipboard

vim over ssh to a linux system is taking a very long time at startup.
Profiling with vim --startuptime I found that the problem is setting up the clipboard:

clock   elapsed: 
5042.066  5041.140: setup clipboard

Is there a way to disable this step?
I never use that anyway and I'd rather have a quicker startup.

like image 710
Andrea Zonca Avatar asked Oct 20 '25 04:10

Andrea Zonca


1 Answers

found solution with some more googling:

set clipboard=exclude:.*

Now the startup time is quick!

like image 194
Andrea Zonca Avatar answered Oct 22 '25 05:10

Andrea Zonca