|
发表于 2003-7-26 18:07:29
|
显示全部楼层
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
set nu
set ai
set ts=2
set sw=2
set sm
set filetype=c
set foldmethod=indent
set path+=c:\ADSv1_2\Include\
set tags=d:\dan.xia_viewTst\sysol3\tags,d:\pcc_rf_code\tags
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 |
|