把下面的语句加到vimrc里面就好了
[code=vim]
filetype indent on
[/code]
来源:http://stackoverflow.com/questions/2360249/vim-automatically-removes-indentation-on-python-comments