编辑/etc/profile文件,在文件末尾加一下内容: export TERM=xterm-color 接着让其变为全局变量 source /etc/profile 编辑/etc/vimrc文件,在文件末尾添加以下内容: syntax on set tabstop= set softtabstop= set shiftwidth= set autoindent set nu set nocompatible filetype plugin indent on 75 hi Comment cte