linux vim 设置 python 自动缩进
在ubuntu中的Vim中设置python的自动缩进:1。编辑vimrc文件: 输入命令vim /etc/vim/vimrc/2.贴入如下代码 保存即可(测试基本上可以 if好像有点问题)set filetype=pythonau BufNewFile,BufRead *.py,*.pyw setf pythonset autoindent " same level
·
在ubuntu中的Vim中设置python的自动缩进:
1。编辑vimrc文件: 输入命令
vim /etc/vim/vimrc/
2.贴入如下代码 保存即可(测试基本上可以 if好像有点问题)
set filetype=python
au BufNewFile,BufRead *.py,*.pyw setf pythonset autoindent " same level indent
set smartindent " next level indent
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
希望有答案的可以一起完善!
更多推荐



所有评论(0)