Prevent auto-indenting when pasting code into Vim

23 Jan 2009

When posting code into vim, it often auto-indents it in a staircase fashion off to the right – really annoying.

To prevent this, use :set paste, and :set nopaste to turn it off.

See also :help paste.

comments powered by Disqus

  « Previous: Next: »