【自用】vim 配置

vim 配置文件 : /etc/vim/vimrc
"去掉vi的一致性"
set nocompatible
"显示行号"
set number
"隐藏滚动条"
set guioptions-=r
set guioptions-=L
set guioptions-=b
"隐藏顶部标签栏"
set showtabline=0
"设置字体"
set guifont=Monaco:h13
set background=dark  "设置背景色"
set nowrap "设置不折行"
set fileformat=unix "设置以unix的格式保存文件"
set cindent "设置c样式的索引格式"
set tabstop=4 "设置table长度"
set shiftwidth=4 "同上"
set showmatch "显示匹配的括号"
set scrolloff=5 "距离顶部和底部5行"
set laststatus=2    "命令行为两行"
set fenc=utf-8  "文本编码"
set backspace=2
"set mouse=a"    "启动鼠标"
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
set ignorecase  "忽略大小写"
set incsearch
set hlsearch    "高亮搜索项"
set noexpandtab "不允许扩展table"
set whichwrap+=<,>,h,l
set autoread
set cursorline  "突出显示当前行"
set cursorcolumn    "突出显示当前列"

你可能感兴趣的:(【自用】vim 配置)