fix(.vimrc): 修复 Python 和 Makefile 的自动缩进设置

This commit is contained in:
Konano 2024-11-14 15:55:15 +08:00
parent ef034c1794
commit a266efa6b7
Signed by: Nano
GPG Key ID: 93686B78EE43A65A

View File

@ -15,7 +15,7 @@ set showmatch " 高亮显示匹配的括号
set showcmd " 显示还没有输入完整的命令 set showcmd " 显示还没有输入完整的命令
filetype plugin indent on " 启用文件类型检测、插件支持和自动缩进 filetype plugin indent on " 启用文件类型检测、插件支持和自动缩进
autocmd FileType python,make setlocal tabstop=4 shiftwidth=4 softtabstop-4 autocmd FileType python,make setlocal tabstop=4 shiftwidth=4 softtabstop=4
autocmd FileType python,make setlocal indentkeys-=<:> autocmd FileType python,make setlocal indentkeys-=<:>
autocmd FileType python,make setlocal indentkeys-=: autocmd FileType python,make setlocal indentkeys-=:
autocmd FileType make setlocal noexpandtab " 对于 Makefile 文件,禁用使用空格代替 Tab 键进行缩进 autocmd FileType make setlocal noexpandtab " 对于 Makefile 文件,禁用使用空格代替 Tab 键进行缩进