Created
February 10, 2016 22:14
-
-
Save kyleferguson/e6c152fc7eb1b6cba6a2 to your computer and use it in GitHub Desktop.
Show vim highlighting groups for work under cursor (ctrl-g)
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
" Show highlighting groups for current word | |
nmap <c-g> :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