gvim脚本设置
- 设置背景颜色
colo desert
- 高亮搜索的字符
:noh
3、光标的坐标,右下角显示
set ruler
- 高亮标尺所在的行列
set cursorline
set cursorcolumn
- 行号
set nu!
6.行间距
set linespace=4
7.语法高亮
syntax enable
syntax on
8.自动缩进
set shiftwidth=4
set autoindent
set cindent
- tab缩进
set tabstop=4
set softtabstop=4
set expandtab
总结
:noh
3,9
set nobackup
set cursorline
set cursorcolumn
set nu!
set linespace=4
syntax enable
syntax on
set shiftwidth=4
set expandtab
set tabstop=4
set softtabstop=4
set autoindent
set cindent
set ruler