1、打开vimrc文件
sudo vi /usr/share/vim/vimrc
2、添加
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

 

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-12-12
  • 2021-12-12
  • 2021-12-12
  • 2021-08-19
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-04-27
  • 2021-12-12
  • 2022-12-23
  • 2021-05-16
  • 2021-12-12
  • 2021-12-12
  • 2021-12-12
相关资源
相似解决方案