mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
Add mapping for toggle hi current line
This commit is contained in:
parent
eedcefacf7
commit
721db59ccf
@ -30,6 +30,8 @@ function! SpaceVim#layers#ui#config() abort
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'f'], 'call call('
|
||||
\ . string(s:_function('s:toggle_colorcolumn')) . ', [])',
|
||||
\ 'toggle-colorcolume', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'h', 'h'], 'set cursorline!',
|
||||
\ 'toggle highlight of the current line', 1)
|
||||
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['T', 'F'], '<F11>',
|
||||
\ 'fullscreen-frame', 0)
|
||||
@ -79,7 +81,7 @@ function! s:toggle_fill_column() abort
|
||||
let &colorcolumn=join(range(80,999),",")
|
||||
let s:ccflag = 1
|
||||
else
|
||||
let &colorcolumn=
|
||||
set cc=
|
||||
let s:ccflag = 0
|
||||
endif
|
||||
endfunction
|
||||
|
@ -71,6 +71,8 @@ function! SpaceVim#mapping#space#def(m, keys, cmd, desc, is_cmd) abort
|
||||
exe a:m . ' <silent> [SPC]' . join(a:keys, '') . ' ' . substitute(cmd, '|', '\\|', 'g')
|
||||
if len(a:keys) == 2
|
||||
let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]] = [lcmd, a:desc]
|
||||
elseif len(a:keys) == 3
|
||||
let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]][a:keys[2]] = [lcmd, a:desc]
|
||||
elseif len(a:keys) == 1
|
||||
let g:_spacevim_mappings_space[a:keys[0]] = [lcmd, a:desc]
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user