2018-09-14 22:17:52 +08:00
|
|
|
---
|
2020-09-14 22:47:49 +08:00
|
|
|
title: "vim#highlight API"
|
2018-09-25 22:09:28 +08:00
|
|
|
description: "vim#highlight API provides some basic functions and values for getting and setting highlight info."
|
2018-09-14 22:17:52 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# [Available APIs](../../) >> vim#highlight
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Intro](#intro)
|
|
|
|
- [Functions](#functions)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Intro
|
|
|
|
|
2018-09-25 22:09:28 +08:00
|
|
|
vim#highlight API provides some basic functions and values for getting and setting highlight info.
|
2018-09-14 22:17:52 +08:00
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
| 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 |
|