Possible Duplicate:
How to paste source code to vim without error format?
In Vim, When I paste a text like this:
line1 line2 line3
It will be converted to:
line1
line2
line3
This usually happens when I copy a text from the web. How do I paste text as it is?
Use
:set pasteto enable Paste mode. Then you can paste as much as you want without vim trying to autoindent it. When you are done, remember to disable Paste mode using:set nopaste.