|
# 打开语法高亮
syntax on
# 应用配色
colorscheme desert
# 不兼容旧VI模式(no comparable)
set nocp
# 使用空格代替tab,谨慎使用,除非你以前的代码都用空格代替tab
set expandtab
# 设置tabspace
set ts=4
# 设置shiftwidth
set sw=4
# 设置backspace的模式
set bs=2
# 标尺,在右下角显示摘要
set ruler
# 智能缩进,也可以考虑用cindent
set smartindent
# 高亮第一个匹配
set incsearch
# 高亮所有匹配
set hlsearch
请多指教,欢迎大家补充啊 |
|