对当前用户的vim的配置需要进入用户目录:cd ~
ls -al 一下你就会看见一个叫.vimrc的文件,这边是对当前用户使用vim的配置文件。我的vim设置为如下:
syntax on
set showcmd
set showmode
set mouse=a
set autoindent
set number
set relativenumber
set cursorline
set ruler
set showmatch
set hlsearch
set incsearch
set ignorecase
set nobackup
set undofile
set smartcase
set noswapfile
set paste
set laststatus=2