iLinuxUser的博客"autocmd VimEnter * startinsert " 以下是一些可能让你用起来更舒适的常用配置 set number " 显示行号 syntax on " 开启语法高亮 set tabstop=4 " 设置制表符宽度为4个空格 set shiftwidth=4 " 设置自动缩进的宽度...
我们需要设置高亮规则,以便 Vim 能够正确地高亮显示代码。在 Vim 中,我们可以使用以下命令设置高亮规则: autocmd BufRead,BufNewFile *.[ch] let fname= expand("%:p:h") . "/types.vim" autocmd BufRead,...