Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! SyntaxGroup() abort
- let l:s = synID(line('.'), col('.'), 1)
- echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name')
- endfunction
- nnoremap <F12> :call SyntaxGroup()<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement