登陆linux系统 切到用户目录(~)下
输入vi ./.vimrc 打开或创建 vi配置文件
set number
colorscheme elflord
hi CursorColumn ctermfg=white ctermbg=Gray
hi CursorLine ctermfg=none ctermbg=238
set cursorline
set ignorecase
set incsearch
set showmatch
set tabstop=4
set autowrite
set ruler
set autochdir
set magic
set history=3000
hi ColorColumn ctermfg=red ctermbg=red
set colorcolumn=82
set shiftwidth=4
新安装的Ubuntu镜像里是不包含vim的,需要安装一下vim 否则会不支持autochdir 和 colorscheme
apt-get install vim