mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 23:10:04 +08:00
Fix Ui toggle
This commit is contained in:
parent
4255372131
commit
5a5326b371
@ -48,6 +48,9 @@ function! SpaceVim#layers#ui#config() abort
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['T', 'm'], 'call call('
|
||||
\ . string(s:_function('s:toggle_menu_bar')) . ', [])',
|
||||
\ 'toggle-menu-bar', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['T', 'f'], 'call call('
|
||||
\ . string(s:_function('s:toggle_win_fringe')) . ', [])',
|
||||
\ 'toggle-win-fringe', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['T', 't'], 'call call('
|
||||
\ . string(s:_function('s:toggle_tool_bar')) . ', [])',
|
||||
\ 'toggle-tool-bar', 1)
|
||||
@ -155,3 +158,16 @@ function! s:toggle_end_of_buffer() abort
|
||||
let s:ebflag = 0
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let s:tfflag = 0
|
||||
function! s:toggle_win_fringe() abort
|
||||
if !s:tfflag
|
||||
set guioptions+=L
|
||||
set guioptions+=r
|
||||
let s:tfflag = 1
|
||||
else
|
||||
set guioptions-=L
|
||||
set guioptions-=r
|
||||
let s:tfflag = 0
|
||||
endif
|
||||
endfunction
|
||||
|
@ -266,17 +266,12 @@ SPC t h i | toggle highlight indentation levels
|
||||
SPC t h c | toggle highlight indentation current column
|
||||
SPC t h s | toggle syntax highlighting
|
||||
SPC t i | toggle indentation guide at point
|
||||
SPC t l | toggle truncate lines
|
||||
SPC t L | toggle visual lines
|
||||
SPC t n | toggle line numbers
|
||||
SPC t v | toggle smooth scrolling
|
||||
SPC T ~ | display ~ in the fringe on empty lines
|
||||
SPC T F | toggle frame fullscreen
|
||||
SPC T f | toggle display of the fringe
|
||||
SPC T m | toggle menu bar
|
||||
SPC T M | toggle frame maximize
|
||||
SPC T t | toggle tool bar
|
||||
SPC T T | toggle frame transparency and enter transparency transient state
|
||||
|
||||
# Features
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user