.vimrc备份

if has("syntax")
  syntax on
endif
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif
set nu
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
if has("vms")
set nobackup
else
set backup
endif

filetype plugin indent on
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd BufReadPost *
			\ if line("'\"")>0&&line("'\"")<=line("$") |
			\ 		exe "normal g'\""|
			\ endif

 分享下自己的.vimrc文,设置了彩色高亮,自动补全,记录上次打开位置等

你可能感兴趣的:(自动补全,vim设置)