This post is older than a year. Consider some information might not be accurate anymore.
vim has the behaviour, if you paste a beginning line with comment, the following lines get also commented and indented. To disable this behaviour switch to the paste mode.
:set paste
Paste your stuff. To deactivate the paste mode:
:set nopaste