http://www.perlmonks.org?node_id=817773


in reply to Can't get vim to stop outdenting Perl comments, any ideas?

Have you tried :set nocindent autoindent comments=n:# formatoptions=tcqr (invoke vim, if running on Unix-like OS, as \vim -N -u /dev/null some-file, then set previous options) ? If that does not work ...

What options do you use to invoke vim? Could you please post vim version, and minimum configuration file to reproduce the problem?

BTW, have you posted your problem on comp.editors newsgroup yet?