首页 > 系统服务 > 详细

linux下vim的配置

时间:2016-03-28 12:04:58      阅读:255      评论:0      收藏:0      [点我收藏+]

下面是我的配置信息:


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


linux下vim的配置

原文:http://lee90.blog.51cto.com/10414478/1757460

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