下面是我的配置信息:
set shortmess=atI syntax enable syntax on set ai set nu set ruler set autoindent set nocompatible set magic set confirm set history=1000 set cursorline highlight Comment ctermfg=lightblue guifg=darkblue set cindent set expandtab set tabstop=4 set softtabstop=4 set shiftwidth=4 set smarttab set si set wrap set showmatch set smartindent set cin set hlsearch au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif "删除行末的空格 autocmd BufWritePre * :%s/\s\+$//ge "每行到第80个字符就自动换行 setlocal textwidth=80