24

How do I remove the Toolbar (which has the open save buttons) in GVim?

Jonas
  • 121,568
  • 97
  • 310
  • 388
unj2
  • 52,135
  • 87
  • 247
  • 375

3 Answers3

61
:set guioptions-=T

See also:

:help 'guioptions'
a paid nerd
  • 30,702
  • 30
  • 134
  • 179
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
Community
  • 1
  • 1
Jeffrey04
  • 6,138
  • 12
  • 45
  • 68
  • 3
    It 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