Another VIM Tip: Magical effect of abbreviation
2011-06-18 21:48
330 查看
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.
Although this tipis is very simple but very useful, enjoy it!
相关文章推荐
- vimtips.txt 可以直接使用,无需任何修改 (TipofTheDay vim)
- A Vim Tip: How to copy content of work directory
- PowerTip of the Day from powershell.com上周汇总(十一)
- LeetCode Subtree of Another Tree
- From the Desk of Commissioner Stern: NBA Tip-Off '09
- ASP.NET MVC another entity of the same type already has the same primary key value
- The 16th tip of DB Query Analyzer
- zoj 3610 Yet Another Story of Rock-paper-scissors
- 【SQL0001】Query from the result of another query
- [Practical.Vim(2012.9)].Drew.Neil.Tip28 学习摘要
- 【6】Decide if one string is a rotation of another string or not
- Two decades of productivity: Vim's 20th anniversary(转载)
- How to run a terminal inside of vim?
- TFS - undoing a checkout of another user ...
- [翻译]Effect of Sensor Fusion for Recognition of Emotional States Using Voice, Face Image and Thermal Image of Face
- 省赛热身赛之——Yet Another Story of Rock-paper-scissors
- K. Yet Another Story of Rock-paper-scissors
- WP7 报 Element is already the child of another element. [Line: 0 Position: 0]
- hint: Updates were rejected because the tip of your current branch is behind
- the setting of vim in ubuntu11.10