Skip to content

Instantly share code, notes, and snippets.

@kyleferguson
Created February 10, 2016 22:14

Revisions

  1. kyleferguson created this gist Feb 10, 2016.
    8 changes: 8 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    " 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