diff --git a/files/.vimrc b/files/.vimrc index 77f283a..2135df4 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -15,7 +15,7 @@ set showmatch " 高亮显示匹配的括号 set showcmd " 显示还没有输入完整的命令 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 make setlocal noexpandtab " 对于 Makefile 文件,禁用使用空格代替 Tab 键进行缩进