Skip to content

Instantly share code, notes, and snippets.

@thinca
Created March 25, 2017 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinca/9a0d8d1a91d0b5396ab15a632c34e03f to your computer and use it in GitHub Desktop.
Save thinca/9a0d8d1a91d0b5396ab15a632c34e03f to your computer and use it in GitHub Desktop.
nnoremap <silent> <Plug>(vimrc-show-current-syntax)
\ :<C-u>echo join(map(synstack(line('.'), col('.')),
\ 'synIDattr(v:val, "name")
\ ."(".synIDattr(synIDtrans(v:val), "name").")"'), ',')<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment