vim配置文件

笔者同时在ubuntu16.04中安装了 vim和gvim,gvim的配置文件主要还是根据.vimrc走的,我新建了一个.gvimrc,改动里面的参数并没有什么卵用。Consolas字体在gvim中没有找到,出现的是一种奇怪的字体。所以我使用了:set guifont=*在gvim中直接配置字体。

set backspace=indent,eol,start 
set history=50 // keep 50 lines of command line history 
set ruler  // show the cursor position all the time 
set showcmd // display incomplete commands 
set incsearch // do incremental searching 
set number 
syntax on “打开语法高亮 
set autoindent “自动缩进 
set smartindent “使用c形式自动缩进 
set cindent 
set tabstop=4TAB键的宽度 
set shiftwidth=4 “统一缩进为4 
set showmatch “高亮显示匹配括号 
set incsearch 
set nu “显示行号 
color darkblue ”颜色方案 
set ruler 
set ignorecase “搜索忽略大小写 
set smartcase 
set hlsearch ”设置搜索字符高亮 
set report=0 
set mouse=a 
set nobackup 
set noeb 
set history=1000 
set nobackup 
set noswapfile 
set enc=utf-8 ”语言编码设置 
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936 
set langmenu=ZH_CN.UTF-8 
set helplang=cn 
set laststatus=2 
set ruler “显示光标位置状态行 
set cmdheight=1 ”设置命令行的高度 
filetype on “侦测文件类型 
filetype plugin on ”载入文件类型插件 
filetype indent on 
set viminfo+=! “保存全局变量 
set iskeyword+=_,$,@,%,#,- ”带有这些字符的单词不要被换行分割 
set linespace=0 “字符间插入像素行数目 
set wildmenu ”命令行自动完成操作 
set backspace=2 “使用回格键 
set whichwrap+=<,>,h,l ”允许backspace和光标跨越行 
set selection=exclusive 
set selectmode=mouse,key 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值