Vim 常用配置

set nocompatible
syntax on
filetype plugin indent on
set ic,is,hls
set hlsearch
set encoding=utf-8
set fileencodings=utf-8,ucs-bom,GB2312,big5
set cursorline
set autoindent
set smartindent
set scrolloff=4
set showmatch
set nu
set tabstop=4
set expandtab

为python特殊配置的:
let python_highlight_all=1
au Filetype python set tabstop=4
au Filetype python set softtabstop=4
au Filetype python set shiftwidth=4
au Filetype python set textwidth=79
au Filetype python set expandtab
au Filetype python set autoindent
au Filetype python set fileformat=unix
autocmd Filetype python set foldmethod=indent
autocmd Filetype python set foldlevel=99


其它看链接:
https://zhuanlan.zhihu.com/p/30022074
https://www.cnblogs.com/mikeguan/p/7791522.html
原文地址:https://www.cnblogs.com/bongem/p/11676810.html