Skip to content

Instantly share code, notes, and snippets.

@hotoo
Created June 25, 2010 12:18
Show Gist options
  • Save hotoo/452773 to your computer and use it in GitHub Desktop.
Save hotoo/452773 to your computer and use it in GitHub Desktop.
" Toggle Menu and Toolbar
" @see http://liyanrui.is-programmer.com/articles/1791/gvim-menu-and-toolbar-toggle.html
set guioptions-=m
set guioptions-=T
map <silent> <F2> :if &guioptions =~# 'T' <Bar>
\set guioptions-=T <Bar>
\set guioptions-=m <bar>
\else <Bar>
\set guioptions+=T <Bar>
\set guioptions+=m <Bar>
\endif<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment