From: Iain Patterson Date: Tue, 19 Aug 2008 15:57:19 +0000 (+0000) Subject: Vim tip 99. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=42b87d14b952594606783e373badd8aca1b1eb8f;p=profile.git Vim tip 99. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@136 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vimrc b/.vimrc index bfb7e9a..2b6167a 100644 --- a/.vimrc +++ b/.vimrc @@ -256,6 +256,9 @@ call Mapping("/", ":let @/=\"\":") " Forget the Ex mode mapping. map Q +" Vim tip 99: What's the highlighting group under the cursor? +call Mapping("h", ":echo \"hi<\" . synIDattr(synID(line(\".\"),col(\".\"),1),\"name\") . '> trans<' . synIDattr(synID(line(\".\"),col(\".\"),0),\"name\") . \"> lo<\" . synIDattr(synIDtrans(synID(line(\".\"),col(\".\"),1)),\"name\") . \">\"") + endif """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""