vim 101 hacks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
:amenu Tools.&Hide-Tool-Bar :set guioptions-=T<br />
To add Tools -> View Tool Bar menu item, do the following:<br />
:amenu Tools.&View-Tool-Bar :set guioptions+=T<br />
If you Press Alt+T to drop down the tools menu, you can see H and V<br />
highlighted. This is because we placed an & in front of H and V when we<br />
defined the menu items.<br />
So, you can use the following shortcuts to invoke the custom menu items<br />
you’ve defined.<br />
• ALT+T H to Hide Tool Bar<br />
• ALT+T V to View Tool Bar<br />
New Top Level Menu Bar<br />
The following example will add a new menu bar called Bookmark (with Alt+K<br />
key) and a menu item called “Windows Explorer” (with Alt+K E) that will<br />
launch Windows Explorer.<br />
:amenu Bookmar&k.Windows\ &Explorer<br />
:!explorer<br />
Note: The above command is one command that should be typed in a single<br />
line. There should be a space after &Explorer.<br />
<strong>101</strong>