1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

Add SPC T m for toggle menu bar

This commit is contained in:
wsdjeg 2017-04-22 20:38:00 +08:00
parent ec0d780647
commit 9f11b1918e

View File

@ -40,6 +40,13 @@ else
return function(substitute(a:fstr, 's:', s:_s, 'g'))
endfunction
endif
let s:tmflag = 0
function! s:toggle_menu_bar() abort
echom 1
if !s:tmflag
set go+=m
let s:tmflag = 1
else
set go-=m
let s:tmflag = 0
endif
endfunction