Skip to content

Instantly share code, notes, and snippets.

@yaasita
Created May 19, 2020 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaasita/d21c3e007a33b2d02bf9de2ea525bb0f to your computer and use it in GitHub Desktop.
Save yaasita/d21c3e007a33b2d02bf9de2ea525bb0f to your computer and use it in GitHub Desktop.
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