1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-25 07:50:04 +08:00
SpaceVim/docs/cn/api/system.md
2019-01-05 01:55:57 -06:00

35 lines
965 B
Markdown

---
title: "系统函数"
description: "system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。"
lang: cn
---
# [公共 API](../) >> system
<!-- vim-markdown-toc GFM -->
- [简介](#简介)
- [values](#values)
- [functions](#functions)
<!-- vim-markdown-toc -->
## 简介
system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。
## values
| name | values | description |
| --------- | :----: | -------------------------- |
| isWindows | 0 or 1 | check if the os is windows |
| isLinux | 0 or 1 | check if the os is linux |
| isOSX | 0 or 1 | check if the os is OSX |
| isDarwin | 0 or 1 | check if the os is Darwin |
## functions
| name | description |
| ---------- | -------------------------------------- |
| fileformat | return the icon of current file format |