Pasting Tabbed Text into VI

It’s possible to easily paste tabbed text into VI by disabling autoindent:

<Esc> :set noai
<paste text>
<Esc> :set ai

Credit

Leave a Reply

Your email address will not be published. Required fields are marked *