Vim set noexpandtab doesn't work


Image credit: Unsplash

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.


  1. use :verbose set noexpandtab? to find the plugin file


  2. search expandtab in that file


  3. change it to noexpandtab

QianLong Sang
QianLong Sang
Second Year CS Phd

My research interests include operating system, computer architecture and computer security.