Added ',hi' to see the current highlight group

This commit is contained in:
yan
2012-04-04 02:21:19 -07:00
committed by Yan Pritzker
parent db4557dc52
commit 2ecf17bf18
2 changed files with 4 additions and 10 deletions

View File

@@ -219,3 +219,6 @@ abbr pry! require 'pry'; binding.pry
nmap <silent> <D-R> :call RunRspecCurrentFileConque()<CR>
" Cmd-Shift-L for RSpec Current Line
nmap <silent> <D-L> :call RunRspecCurrentLineConque()<CR>
" Get the current highlight group. Useful for then remapping the color
map ,hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#")<CR>