1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:30:04 +08:00

Merge website

This commit is contained in:
wsdjeg 2018-01-13 22:33:03 +08:00
commit aed71513ab
8 changed files with 138 additions and 66 deletions

View File

@ -0,0 +1,40 @@
let s:JOB = SpaceVim#api#import('job')
let s:job_id = 0
let s:server_address = ''
function! SpaceVim#dev#website#open()
let path = expand('~/.SpaceVim/docs/')
let cmd = ['bundle', 'exec', 'jekyll', 'serve']
if s:job_id == 0 && s:server_address == ''
let s:job_id = s:JOB.start(cmd, {
\ 'cwd' : path,
\ 'on_stdout' : function('s:on_stdout'),
\ 'on_exit' : function('s:on_exit'),
\ })
else
exe 'OpenBrowser' s:server_address
endif
endfunction
function! SpaceVim#dev#website#terminal() abort
if s:job_id != 0
call s:JOB.stop(s:job_id)
endif
endfunction
function! s:on_stdout(id, data, event) abort
for data in a:data
if data =~# 'Server address:'
let s:server_address = split(data, 'address:')[1]
exe 'OpenBrowser' s:server_address
endif
endfor
endfunction
function! s:on_exit(...) abort
let s:job_id = 0
let s:server_address = ''
endfunction
" vim:set et sw=2 cc=80:

View File

@ -1,2 +1,4 @@
let g:spacevim_force_global_config = 1
call SpaceVim#custom#SPC('nnoremap', ['a', 'r'], 'call SpaceVim#dev#releases#open()', 'Release SpaceVim', 1)
call SpaceVim#custom#SPC('nnoremap', ['a', 'w'], 'call SpaceVim#dev#website#open()', 'Open SpaceVim local website', 1)
call SpaceVim#custom#SPC('nnoremap', ['a', 't'], 'call SpaceVim#dev#website#terminal()', 'Close SpaceVim local website', 1)

View File

@ -2,13 +2,6 @@
<html>
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-5073224535135889",
enable_page_level_ads: true
});
</script>
<meta name="baidu-site-verification" content="AN14j6xQVd" />
{% seo %}
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=60680063" charset="UTF-8"></script>
@ -29,14 +22,6 @@
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PCLWNCD');
</script>
<!-- End Google Tag Manager -->
<script>
((window.gitter = {}).chat = {}).options = {
room: 'SpaceVim/SpaceVim'
@ -66,11 +51,6 @@
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PCLWNCD"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<a href="https://github.com/SpaceVim/SpaceVim">
<img alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" style="position: absolute; top: 0; right: 0; border: 0;"/>
</a>

View File

@ -0,0 +1,8 @@
---
title: "Mnemonic key bindings navigation"
categories: feature
excerpt: "Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…"
image: https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif
---
# Mnemonic key bindings navigation

View File

@ -0,0 +1,11 @@
---
title: "Asynchronous plugin manager"
categories: feature
excerpt: ""
image: https://user-images.githubusercontent.com/13142418/31309093-36c01150-abb3-11e7-836c-3ad406bdd71a.gif
---
# Asynchronous plugin manager
SpaceVim use dein as default plugin manager, and implement a UI for dein.

View File

@ -0,0 +1,10 @@
---
title: "Help description for key bindings"
categories: feature
excerpt: "Key bindings are defined with help description, this feature is for getting Help description and jump to the position where the key bindings is defined."
image: https://user-images.githubusercontent.com/13142418/33804739-52dbc498-dd71-11e7-97e5-ed0fa6ec1719.gif
---
# Mnemonic key bindings navigation
Use `SPC h d k` to start a input prompt, Then press the key bindings you want to describe.

View File

@ -10,57 +10,34 @@ description: "SpaceVim is a community-driven vim distribution that seeks to prov
[![Version](https://img.shields.io/badge/version-0.7.0--dev-FF00CC.svg)](https://github.com/SpaceVim/SpaceVim)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/dev/LICENSE)
SpaceVim is a distribution of the vim editor that's inspired by spacemacs. It manages collections of plugins in layers, which help collect related packages together to provide features. For example, the python layer collects deoplete.nvim, neomake and jedi-vim together to provides autocompletion, syntax checking, and documentation lookup. This approach helps keep configuration organized and reduces overhead for the user by keeping them from having to think about what packages to install.
Please star the project on github - it is a great way to show your appreciation while providing us motivation to continue working on this project. The extra visibility for the project doesn't hurt either!
![welcome-page](https://user-images.githubusercontent.com/13142418/33793078-3446cb6e-dc76-11e7-9998-376a355557a4.png)
See the [documentation](https://spacevim.org/documentation) or [the list of layers](http://spacevim.org/layers/) for more information.
SpaceVim is a distribution of the vim editor that's inspired by spacemacs.
It manages collections of plugins in layers, which help collect related
packages together to provide features. For example, the python layer collects
deoplete.nvim, neomake and jedi-vim together to provides autocompletion,
syntax checking, and documentation lookup. This approach helps keep
configuration organized and reduces overhead for the user by keeping them
from having to think about what packages to install.
Here is a throughput graph of the repository for the last few weeks:
Please star the project on github - it is a great way to show your
appreciation while providing us motivation to continue working on this project.
The extra visibility for the project doesn't hurt either!
[![Throughput Graph](https://graphs.waffle.io/SpaceVim/SpaceVim/throughput.svg)](https://waffle.io/SpaceVim/SpaceVim/metrics/throughput)
See the [Quick start guide](quick-start-guide), [documentation](documentation) or [the list of layers](layers) for more information.
## Requirements
## New features
At a minimum, SpaceVim requires `git` and `wget` to be installed. These tools are needed for downloading plugins and fonts.
If you are new to vim, you should learning about Vim in general, read [vim-galore](https://github.com/mhinz/vim-galore).
## Install
### Linux and macOS
```bash
curl -sLf https://spacevim.org/install.sh | bash
```
After SpaceVim is installed, launch `vim` and SpaceVim will **automatically** install plugins.
For more info about the install script, please check:
```bash
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
```
### Windows
The easist way is to download [install.cmd](https://spacevim.org/install.cmd) and run it as administrator, or install SpaceVim manually.
## Features
- **Great documentation:** access documentation in Vim with <kbd>SPC h SPC</kbd>.
![SPC h SPC](https://user-images.githubusercontent.com/13142418/31620230-48b53eea-b2c9-11e7-90d0-b717878875d4.gif)
- **Beautiful UI:** you'll love the awesome UI and its useful features.
![beautiful UI](https://user-images.githubusercontent.com/13142418/33804722-bc241f50-dd70-11e7-8dd8-b45827c0019c.png)
- **Mnemonic key bindings:** all key bindings have mnemonic prefixes.
![mapping guide](https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif)
- **Describe key bindings:** use <kbd>SPC h d k</kbd> to describe key bindings, and find definition of key bindings.
![describe key](https://user-images.githubusercontent.com/13142418/33804739-52dbc498-dd71-11e7-97e5-ed0fa6ec1719.gif)
- **Lazy load plugins:** Lazy-load 90% of plugins with [dein.vim](https://github.com/Shougo/dein.vim)
![UI for dein](https://user-images.githubusercontent.com/13142418/31309093-36c01150-abb3-11e7-836c-3ad406bdd71a.gif)
- **Neovim centric:** Dark powered mode of SpaceVim
<ul>
{% for post in site.categories.feature offset: 0 limit: 5 %}
<strong><a href="{{ post.url }}">{{ post.title }}</a></strong>
<br>
<span class="post-date">{{ post.date | date_to_string }}</span>
<p>{{ post.excerpt | truncatewords: 100 }}</p>
<br>
<img src="{{ post.image }}">
{% endfor %}
</ul>
## Blogs
@ -77,7 +54,7 @@ More posts are in the [SpaceVim's Blog](https://spacevim.org/blog/)
[Follow @SpaceVim](https://twitter.com/SpaceVim)
## Get Involved
## Participating
Discuss the project at [gitter.im/SpaceVim](https://gitter.im/SpaceVim/SpaceVim) or [/r/SpaceVim](https://www.reddit.com/r/SpaceVim/)

44
docs/quick-start-guide.md Normal file
View File

@ -0,0 +1,44 @@
---
title: "Quick start guide"
description: "SpaceVim is a community-driven vim distribution that seeks to provide layer feature."
---
# Quick start guide
<!-- vim-markdown-toc GFM -->
- [Requirements](#requirements)
- [Install](#install)
- [Linux and macOS](#linux-and-macos)
- [Windows](#windows)
<!-- vim-markdown-toc -->
## Requirements
At a minimum, SpaceVim requires `git` and `wget` to be installed. These tools
are needed for downloading plugins and fonts.
If you are new to vim, you should learning about Vim in general, read
[vim-galore](https://github.com/mhinz/vim-galore).
## Install
### Linux and macOS
```bash
curl -sLf https://spacevim.org/install.sh | bash
```
After SpaceVim is installed, launch `vim` and SpaceVim will **automatically** install plugins.
For more info about the install script, please check:
```bash
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
```
### Windows
The easist way is to download [install.cmd](https://spacevim.org/install.cmd) and run it as administrator, or install SpaceVim manually.