Created
August 2, 2012 00:49
-
-
Save dahu/3232034 to your computer and use it in GitHub Desktop.
Chroma -- print *markup* in Error highlight in Vim
This file contains hidden or 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
| function! Chroma(msg) | |
| let msg = substitute(a:msg, '\*\([^\*]\+\)\*', '"|echohl Error|echon "\1"|echohl None|echon "', 'g') | |
| exe 'echon "' . msg . '"' | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment