How to hide the menu/tool bar of gvim?

Solution 1:

Use the guioptions setting (abbreviated as go).

:set guioptions -=m 

Removes the menu bar.

:set guioptions -=T

Removes the toolbar.

My reference

Solution 2:

you can hide it by typing these command in your .vimrc

set guioptions-=m  "menu bar
set guioptions-=T  "toolbar
set guioptions-=r  "scrollbar