编写.vimrc文件 [root@localhost ~]# vi ~/.vimrc set tabstop=4 set autoindent set cindent 参数详解 set tabstop=4 #设置vim的tab键为4格 set autondent #开启新行时使用自动缩进 set cindent #按照C语言语法自动缩进