How to stop VI / VIM from auto-indenting and auto-formatting
Vim is the best editor in the world. Maybe even the best piece of software ever written. Unfortunately, Ubuntu Linux ships with a really annoying default installation – it auto-indents, it annoyingly highlights matching punctuation, doesn’t support syntax highlighting, etc. If you’ve ever tried to paste something into VIM, you know what I’m talking about – the formatting gets all mucked up.
Solve the problem using the options:
:set paste
:set nopaste

March 10th, 2009 at 5:13 pm
Woohoo! I was wondering why
:set noai
wasn’t working.
This is a big timesaver – thanks!