Vim set noexpandtab doesn't work
Vim
Recently i was writing some python code, i always encountered this error:
And what confuses me is that i have use set noexpandtab
command in ~/.vimrc
, but it doesn’t work. Today i cannot stand it anymore, so i search it and find that answer. It seems like python plugin overwrite my setting.
Solution
use
:verbose set noexpandtab?
to find the plugin filesearch expandtab in that file
change it to noexpandtab