schemer.vim (642B)
1 if exists('g:loaded_schemer') || &cp 2 finish 3 endif 4 let g:loaded_schemer = 1 5 6 let s:cpo_save = &cpo 7 set cpo&vim 8 9 function! s:edit_colors() 10 execute "split ~/.vim/colors/".g:colors_name.".schemer" 11 endfunction 12 13 function! s:synstack() 14 if !exists("*synstack") 15 return 16 endif 17 echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" 18 endfunction 19 20 nnoremap <Plug>SchemerEdit :call <SID>edit_colors()<CR> 21 nnoremap <Plug>SchemerSynstack :call <SID>synstack()<CR> 22 23 let &cpo = s:cpo_save 24 unlet s:cpo_save