Skip to content

Instantly share code, notes, and snippets.

@raine
Created May 21, 2013 15:09
Show Gist options
  • Save raine/5620562 to your computer and use it in GitHub Desktop.
Save raine/5620562 to your computer and use it in GitHub Desktop.
Make vim play nice with HTML templates inside script tags ~/.vim/after/syntax/html.vim
unlet b:current_syntax
syn include @HTML $VIMRUNTIME/syntax/html.vim
syn region htmlTemplate start=+<script [^>]*type *=[^>]*text/template[^>]*>+
\ end=+</script>+me=s-1 keepend
\ contains=@HTML,htmlScriptTag,@htmlPreproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment