dots/.vim/plugin/utils.vim

7 lines
186 B
VimL
Raw Normal View History

2023-12-18 13:50:23 +01:00
function! SynGroup()
let l:s = synID(line('.'), col('.'), 1)
echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name')
endfun
com! -nargs=0 Syn :call SynGroup()