Debian: paste with mouse in vi

systems Add comments

Ever wondered why vi(m) automatically inserts tabs on each line you paste using your mouse with middle-click (and with each line more an additional tab gets added)?

This has been annoying me for years, so I finally went and started searching for a solution. In the end it’s oh-so simple. When you are in vi, enter “:set paste” before you insert something into a buffer with your mouse middle-click. Interestingly Debian seems to be the only distribution where this is off by default.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in