shell script语法高亮和自动缩进的配置

编辑/etc/profile文件,在文件末尾加一下内容:

export TERM=xterm-color

接着让其变为全局变量

source /etc/profile  

编辑/etc/vimrc文件,在文件末尾添加以下内容:

 66 syntax on
 67 set tabstop=4
 68 set softtabstop=4
 69 set shiftwidth=4
 70 set autoindent
 71 set nu
 72 
 73 set nocompatible
 74 filetype plugin indent on
75 hi Comment ctermfg =blue ##解决蓝色注释看不清的问题

shell script语法高亮和自动缩进的配置