Skip to content

Instantly share code, notes, and snippets.

@zoncoen
Last active January 3, 2016 07:58
Show Gist options
  • Save zoncoen/8432517 to your computer and use it in GitHub Desktop.
Save zoncoen/8432517 to your computer and use it in GitHub Desktop.
Overlay '寿' on 'function' in javascript file. Require Vim’s conceal feature.
" $HOME/.vim/after/syntax/javascript.vim
if !has('conceal')
finish
endif
set conceallevel=2
syntax clear javaScriptFunction
syntax keyword javaScriptFunction function nextgroup=javaScriptFuncName skipwhite conceal cchar=寿
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment