Very likely, your source file contains both
It's a good pratice to only use
You can convert all
tab
s and space
s.It's a good pratice to only use
space
s in source file.You can convert all
tab
s to space
s by using those command::set expandtab:ret!
I suggest put those commands bellow in your
.vimrc
:set expandtab softtabstop=4 tabstop=4 shiftwidth=4
_vimrc
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,with,try,except,finally,def,class
No comments:
Post a Comment