Sfoglia il codice sorgente

Shortcut for showing highlighting of a group

Andrew Swistak 8 anni fa
parent
commit
c533d51ab4
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      vimrc

+ 4 - 0
vimrc

@@ -417,3 +417,7 @@ au BufRead,BufNewFile *.Dockerfile set filetype=dockerfile
 au BufRead,BufNewFile *.xsd set filetype=xml
 au BufRead,BufNewFile *.wsdl set filetype=xml
 
+map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
+\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
+\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
+