|
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
colors darkblue "保护视力很重要
set background=dark
set diffexpr=MyDiff() "自定义比较,就是去除空白跟忽略大小写了
set ic! "搜索的时候忽略大小写
set nu "行号
set cindent shiftwidth=2 "2格缩进
set expandtab "厄,用空格替换掉tab
set sm "showmatch,就是括号匹配了
set filetype=c "厄,某些怪异后缀的文件名
set foldmethod=marker "标记折叠
set path+=c:\ADSv1_2\Include\
set tags=xxxxx,xxxx "多个tags file的路径
function MyDiff()
let opt = ''
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
silent execute '!D:\tool\editor\vim\vim62\diff -a ' . opt . '"' . v:fname_in . '" "' . v:fname_new . '" > "' . v:fname_out . '"'
endfunction
set autowrite "自动保存
set nobackup "不留~的备份文件 |
|