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