Posts Tagged ‘formatting’

Paste into VIm without screwing up formatting

August 5, 2009

Often pasting text into vim from an external source screws up the formatting (especially tabs). To prevent this, do:
:set paste

Keeping this setting on screws up auto indentation while in insert mode, though. So to turn off, use
:set nopaste