vimrc: Toggle menu/toolbar

This commit is contained in:
Mahesh Asolkar 2019-01-12 18:02:17 +00:00
parent 7435b42689
commit 9171cadecd

View File

@ -79,6 +79,21 @@
hi Search guifg=black guibg=yellow
hi Cursor guifg=white guibg=maroon
" Hide/Show menu and tool bar
function! ToggleGUICruft()
if &guioptions=='i'
exec('set guioptions=imTrL')
else
exec('set guioptions=i')
endif
endfunction
map <F11> <Esc>:call ToggleGUICruft()<cr>
" By default, hide gui menus
set guioptions=i
else
set background=dark
endif