您的位置:首页 > 运维架构 > Linux

linux下vim的配置

2016-03-28 11:50 477 查看
下面是我的配置信息:
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: