Wednesday, April 30, 2008

Quick Paste

You may have noticed that pasting outside text into Vim from insert mode can lead to awkwardly stair-stepped text. You may also know that this is easily avoidable via :set paste from normal mode. I paste from outside often enough, that I've added the following to my vimrc making it that much easier.

set pastetoggle=<F5>


Leslie P. Polzer said...

Or use "*p / "+p

Travis Whitton said...

I didn't realize "*p would preserve formatting. Thanks for the tip!