avoiding increasing indents while pasting into vi

When pasting text into a vi editing screen, sometimes you’ll get each line increasingly indented like this.

aaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb  cccccccccccccccccc

Use this command to change the “paste” setting. Then change it back when you’re done.

:set paste

:set nopaste


Revision #1
Created Tue, Sep 22, 2009 8:30 PM by Franks, Mike
Updated Tue, Sep 22, 2009 8:30 PM by Franks, Mike