1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-16 03:55:41 +08:00
SpaceVim/docs/cn/apis.md
Wang Shidong ba59ca2520
Update chinese document (#1331)
squash and merged
2018-01-27 01:07:02 +08:00

30 lines
692 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "公共 API"
lang: cn
---
# SpaceVim 公共 APIs
SpaceVim 提供了许多公共的 apis你可以在你的插件中使用这些公共 apisSpaceVim 的公共 apis 借鉴与 [vital.vim](https://github.com/vim-jp/vital.vim)
## 使用方法
```viml
let s:file = SpaceVim#api#import('file')
let s:system = SpaceVim#api#import('system')
if s:system.isWindows
echom "Os is Windows"
endif
echom s:file.separator
echom s:file.pathSeparator
```
以下为可用的公共 apis欢迎贡献新的 apis
名称 | 描述 | 文档
----- |:----:| -------
file | 文件 API | [readme](https://spacevim.org/api/file)
system | 系统 API | [readme](https://spacevim.org/api/system)