Syntax group info

1 Point

Gerardo GalĂ­ndez Gerardo Galíndez

8 years ago

Making a new colorscheme? You'll probably want to check the syntax group a given word is mapping to. This was written by Drew Neil, from Vimcasts.

You can find the episode at:

Also, if you want a template to write your new colorscheme, you can use my sorted template:

nmap <leader>s :call <SID>SynStack()<CR>
function! <SID>SynStack()
    if !exists("*synstack")
    echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')