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 2009-09-22 20:30:55 UTC by Franks, Mike
Updated 2009-09-22 20:30:55 UTC by Franks, Mike