隐藏 gVim 的菜单栏和工具栏

转自:http://liyanrui.is-programmer.com/articles/1791/gvim-menu-and-toolbar-toggle.html

在 _vimrc 中加上如下代码:

“Toggle Menu and Toolbar
set guioptions-=m
set guioptions-=T
map <silent> <F2> :if &guioptions =~# ‘T’ <Bar>
set guioptions-=T <Bar>
set guioptions-=m <bar>
else <Bar>
set guioptions+=T <Bar>
set guioptions+=m <Bar>
endif<CR>

然后按 F2 就可以自由切换了,很好。

This entry was posted in 软件应用 and tagged . Bookmark the permalink.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s