树袋熊的窝 » 日志 » Diff doc file by antiword
Diff doc file by antiword
albert 发表于 2007-08-31 14:09:55
在Windows环境下,通过antiword和vim来diff doc文档,并在P4中做相应设置:
1.把antiword复制到c:\,如果是d:\尝试下来有问题,只能是c盘
2.把c:\antiword加入环境变量PATH
3._vimrc下加入以下语句:
set fileencodings=ucs-bom,utf-8,cp936
autocmd BufReadPre *.doc set ro
autocmd BufReadPost *.doc silent %!antiword -m utf-8.txt "%"
4.P4上option中对diff设置:
User supply diff application: 路径\gvim.exe
Optional args: -d %1 %2
勾上Allow diff of binary file
1.把antiword复制到c:\,如果是d:\尝试下来有问题,只能是c盘
2.把c:\antiword加入环境变量PATH
3._vimrc下加入以下语句:
set fileencodings=ucs-bom,utf-8,cp936
autocmd BufReadPre *.doc set ro
autocmd BufReadPost *.doc silent %!antiword -m utf-8.txt "%"
4.P4上option中对diff设置:
User supply diff application: 路径\gvim.exe
Optional args: -d %1 %2
勾上Allow diff of binary file
相关日志:
收藏:
QQ书签
del.icio.us
订阅:
Google
抓虾
