For some reason Vim thinks all of my comments should have all indentation removed.  If I add # to the beginning of a line, suddenly all leading whitespace is removed.  How can I stop this?I have Janus and NERDtree installed, in case it's relevent, along with copious other personal configurations in my .vimrc, but none that (as far as I know) would cause such behavior.
Stop vim from messing up my indentation on comments
vim;vi
This is a battle I fought as well, and think I finally won. The problem is that there are a dozen different ways the behavior can be overridden (by plugins/syntaxes).Here's all the settings I had to use to win the battle:set nosmartindentset cindentfiletype plugin indent onset cinkeys-=0#set indentkeys-=0#autocmd FileType * set cindent some file types override itWith the autocmd, the first set cindent shouldn't be necessary, but this is one of those things where I kept adding lines until the behavior went away.