Syntax group info

1 Point

Gerardo GalĂ­ndez Gerardo Galíndez

10 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: http://vimcasts.org/episodes/creating-colorschemes-for-vim/

Also, if you want a template to write your new colorscheme, you can use my sorted template: https://github.com/Heldraug/Vim-Colorscheme-Template

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