Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created August 26, 2010 02:54
Show Gist options
  • Save mmisono/550703 to your computer and use it in GitHub Desktop.
Save mmisono/550703 to your computer and use it in GitHub Desktop.
if has('conceal')
function! s:concDebugMsg()
if !exists('b:conc_debug_msg')
setl coceallevel=2
let b:conc_debug_msg = 0
endif
if b:conc_debug_msg
syn clear debugMsg
else
syn region debugMsg conceal start="debug(" end=")$"
endif
let b:conc_debug_msg = 1-b:conc_debug_msg
endfunction
command! -nargs=0 ConcealDebugMsg call s:concDebugMsg()
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment