首页 > 系统服务 > 详细

linux-vim格式设置

时间:2016-09-29 20:22:04      阅读:246      评论:0      收藏:0      [点我收藏+]

vim ~/.vimrc

set nocompatible
set number
filetype on 
set history=1000 
set background=dark 
syntax on 
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has("vms")
	set nobackup
else
	set backup
endif

配置完后的结果图

技术分享

格式化全文: gg=G

自动缩进当前行: ==

linux-vim格式设置

原文:http://www.cnblogs.com/GodMode/p/5920728.html

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