ba0741c893b5
vim: add synstack
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Tue, 28 Sep 2010 09:28:14 -0400 |
parents | 8e046d0fb0dd |
children | 7defffaa1a19 |
branches/tags | (none) |
files | vim/.vimrc |
Changes
--- a/vim/.vimrc Mon Sep 27 16:29:46 2010 -0400 +++ b/vim/.vimrc Tue Sep 28 09:28:14 2010 -0400 @@ -237,6 +237,16 @@ let cram_fold=1 autocmd Syntax cram setlocal foldlevel=1 +" Show syntax highlighting groups for word under cursor +nmap <C-S-P> :call <SID>SynStack()<CR> +function! <SID>SynStack() + if !exists("*synstack") + return + endif + echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +endfunc + + if has('gui_running') set guifont=Menlo:h12 colorscheme molokai