vimrc: Toggle menu/toolbar
This commit is contained in:
parent
7435b42689
commit
9171cadecd
@ -79,6 +79,21 @@
|
|||||||
|
|
||||||
hi Search guifg=black guibg=yellow
|
hi Search guifg=black guibg=yellow
|
||||||
hi Cursor guifg=white guibg=maroon
|
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
|
else
|
||||||
set background=dark
|
set background=dark
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user