Sample Header Ad - 728x90

vim auto indenting even after setting noai option

12 votes
2 answers
5160 views
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++ alt text and following what I got in vim: alt text 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 ?
Asked by Hemant (6950 rep)
Sep 1, 2010, 11:56 AM
Last activity: Feb 13, 2019, 06:24 PM