首页 > 系统服务 > 详细

Vim 常用配置

时间:2019-10-15 12:20:17      阅读:68      评论:0      收藏:0      [点我收藏+]
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

Vim 常用配置

原文:https://www.cnblogs.com/bongem/p/11676810.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!