I don't have use for the menu and tools bars in gvim on Windows; Can I hide them?
This will give more space to the text area.
Use the guioptions setting (abbreviated as go). Removes the menu bar. Removes the toolbar. Abbreviation for guioptions is go , so :set go+=m works also.
If you are staring gVim from a shortcut, such as from the Start Menu or Desktop, you can change the shortcut properties to start Vim maximized. Right-click the shortcut, choose Properties, and select Maximized from the Run drop-down list.
Use the guioptions setting (abbreviated as go).
:set guioptions -=m
Removes the menu bar.
:set guioptions -=T
Removes the toolbar.
My reference
you can hide it by typing these command in your .vimrc
set guioptions-=m "menu bar
set guioptions-=T "toolbar
set guioptions-=r "scrollbar
I have the following code in my .vimrc
: by default the bar is hidden, but if I want to display it I can use F11 to toggle between the two modes.
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
Removing mTrl
hides the window menu bar, task bar and right scroll bar, it is kind of a Gvim fullscreen mode. See :help guioptions
for more information and customization.
PS : it is important to keep i
in your guioptions, otherwise the Vim Icon is not displayed in AltTAB and task bar.
You can select Edit -> Global settings -> Toggle toolbar. This hides toolbar until you restart VIM. Then, enter :set
. Vim prompt you list of different options, find line containing guioptions
. This is what you need to add to .vimrc file to sustain this appearance.
This method can be used if you don't know option name but know how to change it through main menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With