Explorar o código

Shortcut for showing highlighting of a group

Andrew Swistak %!s(int64=8) %!d(string=hai) anos
pai
achega
0c911701fd
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      vimrc

+ 4 - 0
vimrc

@@ -421,3 +421,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>
+