Ubuntu下配置Viw Tab键缩进格数

it2022-05-09  37

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

vim /etc/vim/vimr

在文件中添加:

set ts=4 set expandtab set autoindent

转载于:https://www.cnblogs.com/litstrong/archive/2012/05/11/2496302.html


最新回复(0)