I am using vim 7.2 from putty terminal.
Even if I run set noai it seems vim still trying to indent code. I am copying my code from Notepad++ to vim. following is from Notepad++

and following what I got in vim:

I don't have any tab in my file.
As a workaround I am opening old vi run set noai paste save and open in vim again. Any suggestion how to correct this behavior ?