• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Display the matching syntax rules in VimEdit

Created 3/30/2015, updated 5/18/2017

Mapping to show matching highlight rules at current position

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>

Source

http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor

  • vim
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).