How to hide the menu/tool bar of gvim?

前端 未结 7 810
刺人心
刺人心 2020-12-12 18:42

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.

7条回答
  •  粉色の甜心
    2020-12-12 19:37

    I have

    set guioptions=
    

    in my .vimrc. But too often I wanted to use the menu momentarily with :set go+=m and :set go-=m.

    From Hide toolbar or menus to see more text - Vim Tips Wiki, I use their

    let mapleader=","
    nnoremap m :if &go=~#'m'set go-=melseset go+=mendif
    

    to toggle menu on and off with ,m. (Well, they actually have ctrl-F1 as the key-binding.)

    For instance, when I need to remember the way to paste from OS' clipboard, I can find it in the menu very quickly. Once found, I'll still type it manually with "+gP to build muscle memory, but still I use it so seldom that I forget it too quickly.

提交回复
热议问题