主要参考:
配置的补充:
set nu " 设置显示行号
set showmode " 设置在命令行界面最下面显示当前模式等
set ruler " 在右下角显示光标所在的行数等信息
set autoindent " 设置每次单击Enter键后,光标移动到下一行时与上一行的起始字符对齐
syntax on " 即设置语法检测,当编辑C或者Shell脚本时,关键字会用特殊颜色显示
set tabstop " tab 长度设置为 4
set nobackup " 覆盖文件时不备份
set cursorline " 突出显示当前行
set cindent " C语言格式对齐
set smartindent " 智能对齐
set autoindent " 自动对齐
set showmatch " 括号匹配模式
set incsearch " 搜索时一边输入一遍显示效果
set nocompatible " 不使用vi默认键盘布局