1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-26 14:30:04 +08:00
SpaceVim/docs/cn/api/vim/highlight.md
2020-09-14 22:47:49 +08:00

1.0 KiB
Raw Blame History

title description lang
vim#highlight 接口 vim#highlight API 提供一些设置和获取 Vim 高亮信息的基础函数。 zh

可用 APIs >> vim#highlight

简介

vim#highlight 接口提供了基础的设置高亮颜色的函数库可用于定义和解析高亮组highlight group

函数列表

function name description
group2dict(name) get a dict of highligh group info
hi(info) run highligh command base on info
hide_in_normal(name) hide a group in normal
hi_separator(a, b) create separator for group a and group b
syntax_at(...) get syntax info at a position
syntax_of(pattern, ...) get syntax info of a pattern