Skip to content

Instantly share code, notes, and snippets.

@tomoki
Created October 23, 2012 18:27
Show Gist options
  • Save tomoki/3940575 to your computer and use it in GitHub Desktop.
Save tomoki/3940575 to your computer and use it in GitHub Desktop.
hankaku.
function! HankakuSpace()
highlight HankakuSpace cterm=underline ctermfg=darkgrey gui=underline guifg=darkgrey
endfunction
if has('syntax')
augroup HankakuSpace
autocmd!
"ZenkakuSpaceをカラーファイルで設定するなら次の行は削除
autocmd ColorScheme * call HankakuSpace()
" 全角スペースのハイライト指定
autocmd VimEnter,WinEnter * match HankakuSpace / /
augroup END
call HankakuSpace()
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment