用python的都知道,缩进要缩进4格,而默认的是8格,所以要进行设置,其实比较喜欢的做法,只需要修改/usr/share/vim/vimcurrent/ftplugin/python.vim就可以了,然后试了下,不行,就用的方法了:

vim /etc/vim/vimr

在文件中添加:

set ts=4
set expandtab
set autoindent

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-10-30
  • 2021-12-27
  • 2021-06-06
  • 2022-12-23
  • 2021-10-07
猜你喜欢
  • 2022-01-04
  • 2021-06-11
  • 2021-09-16
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案