1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/docs/api/messletters.md

35 lines
777 B
Markdown
Raw Normal View History

2018-07-13 20:35:27 +08:00
---
title: "messletters api"
description: "messletters API provides some basic functions for generating messletters"
2018-07-13 20:35:27 +08:00
---
# [Available APIs](../) >> messletters
<!-- vim-markdown-toc GFM -->
- [Intro](#intro)
- [Functions](#functions)
<!-- vim-markdown-toc -->
## Intro
This api provides some basic Functions for generating messletters.
```vim
let s:PW = SpaceVim#api#import('messletters')
let messletters = s:PW.circled_num(1, 2)
" generate circled number 1, all available types:
2019-01-07 21:15:22 +08:00
" 0: 1 ➛ ➊
2018-07-13 20:35:27 +08:00
" 1: 1 ➛ ➀
" 2: 1 ➛ ⓵
echom messletters
" you should see a string like `⓵`
```
## Functions
| function name | description |
| ------------------------ | ------------------------- |
| `circled_num(num, type)` | generating circled number |