Vim 常用配置

吃可爱长大的小学妹 提交于 2019-12-01 09:52:07
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/30022074https://www.cnblogs.com/mikeguan/p/7791522.html
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!