首页 > 系统服务 > 详细

Vim 配置 工欲善其事,必先利其器

时间:2016-04-13 21:01:12      阅读:206      评论:0      收藏:0      [点我收藏+]
"显示行号
set number
"设置标尺
set ruler
"突出显示输入的命令
set showcmd
"突出显示当前号
set cursorline
"设置不自动换行
set nowrap
"开启语法高亮
syntax enable
syntax on
"设置缩进
set autoindent
"四个空格代替一个 tab
set tabstop=4
set shiftwidth=4
set softtabstop=4
"文件折叠
set foldenable
set foldmethod=manual
set foldmethod=indent
set foldmethod=syntax
"设置匹配
set showmatch
"设置退格
set backspace=indent,eol,start
"用空格键替换制表符
set expandtab
"高亮搜索
set hlsearch
"检测文件类型
filetype on
filetype plugin on
filetype indent on
"设置编码
set fenc=utf-8
set encoding=utf-8
set fileencodings=utf-8
"解决consle输出乱码
language messages zh_CN.utf-8


本文出自 “我相信” 博客,请务必保留此出处http://mrcelite.blog.51cto.com/2977858/1763450

Vim 配置 工欲善其事,必先利其器

原文:http://mrcelite.blog.51cto.com/2977858/1763450

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