Article From:https://www.cnblogs.com/dawangk-3366/p/9216695.html
1、Open the vimrc file
sudo vi /usr/share/vim/vimrc
2、Add to
set filetype=python
au BufNewFile,BufRead *.py,*.pyw setf python
set autoindent " same level indent
set smartindent " next level indent
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4

 

Leave a Reply

Your email address will not be published. Required fields are marked *