vim配置文件.vimrc

20171127备份

syntax on           "自动语法高亮
set number          "显示行号
set autoindent      "回车后自动缩进
set tabstop=4       "tab键缩进的空格为4
set shiftwidth=4    "设置编辑器将4个空格视为一个缩进
"set showtabline=0  "隐藏顶部标签栏
set expandtab       "输入tab时自动将其转化为空格
set softtabstop=4   "键入tab时实际占有的列数
":retab!            "将已有的tab转为空格 
set backspace=2         " ?

"set cursorline        "突出显示当前行
"set cursorcolumn        "突出显示当前列


set autoread            "文件在Vim之外修改过,自动重新读入
"set nowrap              "设置不自动换行
set fileformat=unix     "设置以unix的格式保存文件
"set cindent             "设置C样式的缩进格式 ?
set fileencoding=utf-8  "使用utf-8打开文件


set showmatch           "显示匹配的括号
set matchtime=5         "匹配括号高亮的时间(单位是十分之一秒)
"set scrolloff=5         "距离顶部和底部5行 ?
"set laststatus=2        "在底部显示状态栏

set mouse=a          "启用鼠标
set selection=exclusive
set selectmode=mouse,key
set ignorecase          "检索时忽略大小写
set incsearch           "在搜索时,输入的词句的逐字符高亮
set hlsearch            "检索时高亮匹配项
set whichwrap+=<,>,h,l
set helplang=cn         "设置帮助系统为中文

"我的状态行显示的内容(包括文件类型和解码)
"set statusline=%F%m%r%h%w [FORMAT=%{&ff}] [TYPE=%Y] [POS=%l,%v][%p%%] %{strftime("%d/%m/%y - %H:%M")}

原文地址:https://www.cnblogs.com/liutongqing/p/7905984.html