mirror of
https://github.com/osyo-manga/vim-brightest.git
synced 2025-11-16 07:23:50 -05:00
Add command :BrightestHighlight and :BrightestClear
This commit is contained in:
@@ -14,12 +14,18 @@
|
||||
コマンド *brightest-commands*
|
||||
|
||||
:BrightestEnable *:BrightestEnable*
|
||||
ハイライトを有効にします。
|
||||
カーソル移動による自動ハイライトを有効にします。
|
||||
この状態が既定値になります。
|
||||
|
||||
:BrightestDisable *:BrightestDisable*
|
||||
ハイライトを無効にします。
|
||||
カーソル移動による自動ハイライトを無効にします。
|
||||
|
||||
:BrightestHighlight *:BrightestHighlight*
|
||||
ハイライトを行います。
|
||||
|:BrightestDisable| で無効になっている場合はハイライトされません
|
||||
|
||||
:BrightestClear *:BrightestClear*
|
||||
ハイライトを削除します。
|
||||
|
||||
==============================================================================
|
||||
設定 *brightest-setting*
|
||||
|
||||
@@ -20,8 +20,12 @@ endfunction
|
||||
call s:init_hl()
|
||||
|
||||
|
||||
command! -bar BrightestEnable let g:brightest_enable = 1 | call brightest#highlighting()
|
||||
command! -bar BrightestDisable let g:brightest_enable = 0 | call brightest#hl_clear()
|
||||
command! -bar BrightestHighlight call brightest#highlighting()
|
||||
command! -bar BrightestClear call brightest#hl_clear()
|
||||
command! -bar BrightestEnable let g:brightest_enable = 1 | BrightestHighlight
|
||||
command! -bar BrightestDisable let g:brightest_enable = 0 | BrightestClear
|
||||
|
||||
|
||||
|
||||
augroup brightest
|
||||
autocmd!
|
||||
|
||||
Reference in New Issue
Block a user