vim的配置文件
/etc/vimrc 所有用户都能读取到这个配置
~/.vimrc 只有当前用户才能读取到的配置
具体配置代码:
set nocompatible
syntax on
set number
set cursorline
set ruler
set shiftwidth=4
set softtabstop=4
set tabstop=4
set nobackup
set autochdir
filetype plugin indent on
set backupcopy=yes
set ignorecase smartcase
set nowrapscan
set incsearch
set hlsearch
set noerrorbells
set novisualbell
set t_vb=
set showmatch
set matchtime=2
set magic
set hidden
set guioptions-=T
set guioptions-=m
set smartindent
set backspace=indent,eol,start
set cmdheight=1
set laststatus=2
set foldenable
set foldcolumn=0
setlocal foldlevel=1
set foldclose=all