配置一下vim就可以了
首先pwd一下,查看用户根目录
$ pwd
/home/Administrator
$vim /home/Administrator/.vimrc
set nocompatible
set backspace=indent,eol,start
set ruler
set showcmd
set wildmenu
set fo=cqrt
set laststatus=2
set textwidth=78
set ww=<,>,h,l
set autoindent
" set no error bells
set noeb visualbell
set expandtab
set tabstop=4
set shiftwidth=4
set expandtab
let mapleader = ","
syn on
filetype on
filetype plugin on
filetype indent on
将上面绿色背景的内容保存退出,现在再试试你的vim是否正常了,我的是这么解决的!