14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

:set guioptions-=T<br />

Hide gVim Toolbar<br />

:set guioptions-=m<br />

Hide gVim Menu Bar<br />

:set guioptions-=r<br />

Hide gVim Right side scroll bar<br />

:set guioptions-=l<br />

Hide gVim Left side scroll bar<br />

:set guioptions-=R<br />

Hide gVim Right side scroll bar that appears<br />

when window is split vertically<br />

:set guioptions-=L<br />

Hide gVim Left side scroll bar that appears<br />

when window is split vertically<br />

Hack 65. Adding a Custom Menu or Menu Items to<br />

gVim<br />

You can add your own menu and menu item to gVim for custom operation.<br />

New Menu Item under an Existing Menu<br />

For example, you can add the following two menu items under the Tools<br />

menu<br />

• Hide Tool Bar – This will hide the tool bar<br />

• View Tool Bar – Once you’ve hidden the tool bar, use this to get it<br />

back.<br />

To add the Tools -> Hide Tool Bar menu item, do the following:<br />

100

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!