From 42b87d14b952594606783e373badd8aca1b1eb8f Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 19 Aug 2008 15:57:19 +0000 Subject: [PATCH] Vim tip 99. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@136 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) 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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- 2.20.1