admin管理员组文章数量:1122832
In a plaintext buffer I have many words highlighted by :call matchadd(<group>, <pattern>)
in different highlight groups. Is there a way to get the group name of cursor char?
:hlID()
does not accepts cursor position args, it asks for highlight group name as its arg and returns highlight ID.:synID()
accepts cursor position args but it does not work because it is for syntax highlight, not match highlight. And as it is plaintext buffer, :Inspect
in neovim gives 'no items found at position x,y in buffer i'.
本文标签: Is there a way to get highlight group of the char under the cursor in (neo)vimStack Overflow
版权声明:本文标题:Is there a way to get highlight group of the char under the cursor in (neo)vim? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736299579a1930505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论