Created
May 19, 2020 17:00
-
-
Save yaasita/d21c3e007a33b2d02bf9de2ea525bb0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! HankakuSpace call HankakuSpace() | |
command! ZenkakuSpace call ZenkakuSpace() | |
function! HankakuSpace() "{{{2 | |
syntax match HankakuSpace / / | |
redir => l:hi | |
highlight HankakuSpace | |
redir END | |
if match(l:hi,'cleared') >= 0 | |
highlight! default link HankakuSpace TabLine | |
else | |
highlight! default link HankakuSpace NONE | |
endif | |
endfunction "}}} | |
function! ZenkakuSpace() "{{{2 | |
syntax match ZenkakuSpace / / | |
redir => l:hi | |
highlight ZenkakuSpace | |
redir END | |
if match(l:hi,'cleared') >= 0 | |
highlight! default link ZenkakuSpace WildMenu | |
else | |
highlight! default link ZenkakuSpace NONE | |
endif | |
endfunction "}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment