Firstly, Add these lines in .vimrc(Linux) or _vimrc (windows)
" Go word
abb goword !"C:/Program Files/Microsoft Office/Office12/winword.exe"
" Go IE
abb goie !"C:/Program Files/Internet Explorer/iexplore.exe"
Consider you are editing a ooxml file,and you would like preview the file. Now, turn vim to normal mode, type :!goword % . It's so simple.Similarly, you can preview html file with :!goie command.
Althoughthistipis is verysimple butvery useful, enjoy it!
本文介绍了一种在Vim编辑器中预览OOXML和HTML文件的方法。通过简单的配置,用户可以在Vim中直接调用Word或IE预览文档,极大地提高了工作效率。
1万+

被折叠的 条评论
为什么被折叠?



