首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >linux下vim的配置

linux下vim的配置

作者头像
保持热爱奔赴山海
发布于 2019-09-18 08:03:24
发布于 2019-09-18 08:03:24
4.2K0
举报
文章被收录于专栏:DevOpsDevOps数据库相关

下面是我的配置信息:

代码语言:javascript
复制
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
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016/03/28 ,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档