From b49b8ba3a847e8d6306efc2755fb656185d0c4c3 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 19 May 2017 01:04:20 +0800 Subject: [PATCH] Add SPC t m T --- autoload/SpaceVim/layers/core/statusline.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/SpaceVim/layers/core/statusline.vim b/autoload/SpaceVim/layers/core/statusline.vim index a4764bec4..94cad650f 100644 --- a/autoload/SpaceVim/layers/core/statusline.vim +++ b/autoload/SpaceVim/layers/core/statusline.vim @@ -185,4 +185,6 @@ function! SpaceVim#layers#core#statusline#config() abort \ 'toggle the battery status', 1) call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 't'], 'call SpaceVim#layers#core#statusline#toggle_section("time")', \ 'toggle the time', 1) + call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'T'], 'if &laststatus == 2 | let &laststatus = 0 | else | let &laststatus = 2 | endif', + \ 'toggle the statuline itself', 1) endfunction