1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00
This commit is contained in:
Camden Cheek 2017-02-18 13:53:29 -05:00
commit 9cb30a06c0
7 changed files with 57 additions and 7 deletions

View File

@ -3,8 +3,10 @@ let s:system = SpaceVim#api#import('system')
if s:system.isWindows
let s:file['separator'] = '\'
let s:file['pathSeparator'] = ';'
else
let s:file['separator'] = '/'
let s:file['pathSeparator'] = ':'
endif
function! SpaceVim#api#file#get() abort

View File

@ -0,0 +1,9 @@
function! SpaceVim#layers#debug#plugins() abort
let plugins = []
call add(plugins,['idanarye/vim-vebugger', {'merged' : 0}])
return plugins
endfunction
function! SpaceVim#layers#debug#config() abort
endfunction

View File

@ -1,6 +1,6 @@
function! SpaceVim#layers#lang#swig#plugins() abort
let plugins = []
call add(plugins, 'SpaceVim/vim-swig')
call add(plugins, ['SpaceVim/vim-swig'])
return plugins
endfunction

View File

@ -1,6 +1,24 @@
<!doctype html>
<html>
<head>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://spacevim.org/",
"name": "{{ page.title | default: Home }} - SpaceVim",
"author": {
"@type": "Person",
"name": "Shidong Wang"
},
"description": "{{ site.description }}",
"publisher": "Shidong Wang",
"potentialAction": {
"@type": "SearchAction",
"target": "https://spacevim.org/?s={search_term}",
"query-input": "required name=search_term" }
}
</script>
<script>
var _hmt = _hmt || [];
(function() {

View File

@ -2,10 +2,13 @@
title: "file api"
---
# [APIs](https://spacevim.org/apis) : file
## values
name | values | description
----- |:----:| ------------------
separator | `/` or `\\` | the separator based on the os
separator | `/` or `\` | The system-dependent name-separator character.
pathSeparator | `:` or `;` | The system-dependent path-separator character.
## functions

View File

@ -2,6 +2,8 @@
title: "system api"
---
# [APIs](https://spacevim.org/apis) : system
## values
name | values | description

View File

@ -4,9 +4,25 @@ title: "APIs"
# SpaceVim public APIs:
SpaceVim provide many public apis, you can use this apis in your plugins. here is the list of all the apis:
SpaceVim provide many public apis, you can use this apis in your plugins.
nanme | description
----- | ------------------
file |
system |
## 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)