Skip to content

Instantly share code, notes, and snippets.

@mikebarkas
Last active August 29, 2015 14:14
Show Gist options
  • Save mikebarkas/a4feddd6762bfaab2c25 to your computer and use it in GitHub Desktop.
Save mikebarkas/a4feddd6762bfaab2c25 to your computer and use it in GitHub Desktop.
" Show syntax highlighting groups for word under cursor
nmap <leader>z :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment