How do I remove the Toolbar (which has the open save buttons) in GVim?
Asked
Active
Viewed 8,307 times
3 Answers
61
:set guioptions-=T
See also:
:help 'guioptions'

a paid nerd
- 30,702
- 30
- 134
- 179
-
After viewing the link provided by _a paid nerd_, I added it to $VIMRUNTIME/menu.vim (on windows) – jahroy Jul 02 '12 at 18:36
-
6
The best way to do this is to use the -= operator (as shown in the current accepted answer by @a paid nerd). Add this line to the configuration file ($MYVIMRC
)
:set guioptions-=T
In order to find out what the above line does (see below), besides issuing a help command, you can also find it here.
I have my .vimrc set as follows
set guioptions=aegimrLt
where the definition for each of the options can be found by issuing
:help guioptions
-
3It appears `:help guioptions` recommends `set guioptions+=` and `set guioptions-=` rather than `set guioptions=`, in case some new options are added in the future.. – chys Jan 19 '13 at 11:41
-
yes indeed, just realized this recently when I revisited my config for neovim. These are one of those things where you just set up and forget LOL – Jeffrey04 Nov 17 '15 at 02:42
4
Another one:
:set toolbar=
:help 'toolbar'

ngn
- 7,763
- 6
- 26
- 35
-
But `:help 'toolbar'` itself contradicts your first line: "If none of the strings specified in 'toolbar' are valid or if 'toolbar' is empty, this option is ignored. If you want to disable the toolbar, you need to set the 'guioptions' option. " – Sundar R Jun 08 '15 at 17:41