1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:50:04 +08:00
SpaceVim/docs/apis.md

29 lines
632 B
Markdown
Raw Normal View History

2017-02-16 23:23:12 +08:00
---
title: "APIs"
---
# SpaceVim public APIs:
2017-02-17 21:02:14 +08:00
SpaceVim provide many public apis, you can use this apis in your plugins.
2017-02-16 23:23:12 +08:00
2017-02-17 21:02:14 +08:00
## Usage
```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
```
here is the list of all the apis, and welcome to contribute to SpaceVim.
name | description | documentation
----- |:----:| -------
file | basic api about file and directory | [readme](https://spacevim.org/api/file)
system | basic api about system | [readme](https://spacevim.org/api/system)