For at least filetypes html, sh, and perl, whenever I start a line with '#', it moves it to the very beginning of the line, ignoring any indent. It doesn't do this with filetype=c.

Maybe the 'indentexpr' does it for those filetypes.

Try ":filetype indent off" in your vimrc.

indentexpr isn't set, and filetype indent off didn't make a difference.

--

.

Reply via email to