2017-02-25 15:27:15 +08:00
[![SpaceVim ](https://spacevim.org/logo.png )](https://spacevim.org)
[Documentation ](http://spacevim.org/documentation/ ) |
[Twitter ](https://twitter.com/SpaceVim ) |
[Community ](https://spacevim.org/community/ ) |
[Gitter **Chat** ](https://gitter.im/SpaceVim/SpaceVim )
2017-01-10 00:27:52 +08:00
2017-01-08 13:50:17 +08:00
[![Build Status ](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev )](https://travis-ci.org/SpaceVim/SpaceVim)
2017-04-11 21:03:29 +08:00
![Version 0.2.0-dev ](https://img.shields.io/badge/version-0.3.0--dev-FF00CC.svg )
2017-01-09 13:35:05 +08:00
[![MIT License ](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )](LICENSE)
2017-01-08 13:50:17 +08:00
[![Doc ](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square )](doc/SpaceVim.txt)
2017-02-05 10:03:28 +08:00
2017-03-16 05:58:11 +08:00
SpaceVim is a community-driven vim distribution that seeks to provide layer feature, escpecially for neovim. It offers a variety of layers to choose from. to create a suitable vim development environment, you just need to select the required layers.
2017-02-25 15:53:58 +08:00
See the [documentation ](https://spacevim.org/documentation ) or [the list of layers ](http://spacevim.org/layers/ ) for more information.
2017-01-19 22:08:40 +08:00
2017-02-25 20:45:31 +08:00
Here is a throughput graph of the repository for the last few weeks:
2017-02-25 15:27:15 +08:00
[![Throughput Graph ](https://graphs.waffle.io/SpaceVim/SpaceVim/throughput.svg )](https://waffle.io/SpaceVim/SpaceVim/metrics/throughput)
2017-02-25 19:47:13 +08:00
# Table of Contents
2017-02-25 16:57:35 +08:00
2017-02-10 19:43:38 +08:00
- [Introduction ](#introduction )
2017-02-25 16:57:35 +08:00
- [Features ](#features )
- [Documentation ](#documentation )
2017-02-25 20:45:31 +08:00
- [Quick start guide ](#quick-start-guide )
2017-02-25 16:57:35 +08:00
- [Getting Help ](#getting-help )
2017-02-25 19:47:13 +08:00
- [Install ](#install )
- [Update ](#update )
2017-02-10 19:43:38 +08:00
- [Community ](#community )
- [Support SpaceVim ](#support-spacevim )
- [contribute to SpaceVim ](#contribute-to-spacevim )
2017-02-25 20:45:31 +08:00
- [Write post about SpaceVim ](#write-post-about-spacevim )
2017-02-10 19:43:38 +08:00
- [Credits & Thanks ](#credits--thanks )
2017-02-25 16:57:35 +08:00
## Introduction
2017-02-05 09:55:10 +08:00
2017-02-25 16:57:35 +08:00
[SpaceVim ](https://github.com/SpaceVim/SpaceVim ) is a community-driven vim distribution with a bundle of modular configuration,
here we call these modules as layers, each layer has different plugins and config, users just need
2017-01-14 13:06:18 +08:00
to select the layers they need. It got inspired by [spacemacs ](https://github.com/syl20bnr/spacemacs ). If you use SpaceVim,
please star it on github. It's a great way of getting feedback and gives me the kick to
put more time into development.
2017-01-04 21:04:42 +08:00
2017-02-26 21:05:28 +08:00
![2017-02-26_1365x739 ](https://cloud.githubusercontent.com/assets/13142418/23339920/590f2e9a-fc67-11e6-99ec-794f79ba0902.png )
2017-02-25 16:57:35 +08:00
If you are new to vim, you should learning about Vim in general, read [vim-galore ](https://github.com/mhinz/vim-galore ).
## Features
2017-01-14 13:06:18 +08:00
2017-02-25 16:57:35 +08:00
- **Great documentation:** access documentation in Vim with
2017-02-25 20:13:39 +08:00
< kbd > :h SpaceVim< / kbd > .
2017-02-25 16:57:35 +08:00
- **Beautiful GUI:** you'll love the awesome UI and its useful features.
- **Mnemonic key bindings:** commands have mnemonic prefixes like
2017-02-25 20:13:39 +08:00
< kbd > [Window]< / kbd > for all the window and buffer commands or < kbd > [Unite]< / kbd > for the
unite work flow commands.
2017-02-25 16:57:35 +08:00
- **Lazy load plugins:** Lazy-load 90% of plugins with [dein.vim]
- **Batteries included:** discover hundreds of ready-to-use packages nicely
2017-02-25 20:13:39 +08:00
organised in configuration layers following a set of
[conventions ](http://spacevim.org/development/ ).
2017-02-25 19:47:13 +08:00
- **Neovim centric:** Dark powered mode of SpaceVim
2016-12-26 23:59:21 +08:00
2017-03-29 00:27:08 +08:00
This is the Unite centric work-flow:
![unite ](https://cloud.githubusercontent.com/assets/13142418/23955542/26fd5348-09d5-11e7-8253-1f43991439b0.png )
2017-02-25 19:47:13 +08:00
## Documentation
2017-02-25 20:13:39 +08:00
### Quick start guide
2017-03-06 23:39:03 +08:00
SpaceVim load custom configuration from `~/.SpaceVim.d/init.vim` ,
2017-02-25 20:13:39 +08:00
:warning: It is not `~/.SpaceVim/init.vim` , user should not change anything in `~/.SpaceVim/` .
here is an example:
2017-03-22 20:29:54 +08:00
```viml
2017-02-25 20:13:39 +08:00
" Here are some basic customizations, please refer to the ~/.SpaceVim.d/init.vim
" file for all possible options:
let g:spacevim_default_indent = 3
let g:spacevim_max_column = 80
" Change the default directory where all miscellaneous persistent files go.
2017-03-20 23:27:24 +08:00
" By default it is ~/.cache/vimfiles/.
let g:spacevim_plugin_bundle_dir = '~/.cache/vimfiles/'
2017-02-25 20:13:39 +08:00
2017-02-25 21:01:05 +08:00
" set SpaceVim colorscheme
let g:spacevim_colorscheme = 'jellybeans'
" Set plugin manager, you want to use, default is dein.vim
let g:spacevim_plugin_manager = 'dein' " neobundle or dein or vim-plug
" use space as `<Leader>`
let mapleader = "\<space>"
" Set windows shortcut leader [Window], default is `s`
let g:spacevim_windows_leader = 's'
" Set unite work flow shortcut leader [Unite], default is `f`
let g:spacevim_unite_leader = 'f'
2017-02-25 20:13:39 +08:00
" By default, language specific plugins are not loaded. This can be changed
" with the following, then the plugins for go development will be loaded.
call SpaceVim#layers#load('lang#go')
" loaded ui layer
call SpaceVim#layers#load('ui')
" If there is a particular plugin you don't like, you can define this
" variable to disable them entirely:
let g:spacevim_disabled_plugins=[
\ ['junegunn/fzf.vim'],
\ ]
" If you want to add some custom plugins, use these options:
let g:spacevim_custom_plugins = [
\ ['plasticboy/vim-markdown', {'on_ft' : 'markdown'}],
\ ['wsdjeg/GitHub.vim'],
\ ]
" set the guifont
let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline\ 11'
```
2017-02-25 19:47:13 +08:00
Comprehensive documentation is available for each layer by < kbd > :h SpaceVim< / kbd > .
You can also check the [general documentation ](http://spacevim.org/documentation/ ).
## Getting Help
If you need help, ask your question in the [Gitter Chat ](https://gitter.im/SpaceVim/SpaceVim ), a member of the community will help you out.
## Community
2017-02-22 21:25:17 +08:00
Try these Neovim hangouts for any questions, problems or comments.
2017-02-10 19:43:38 +08:00
- Ask
- [issue tracker ](https://github.com/SpaceVim/SpaceVim/issues ) for issue and feature requests
- vi StackExchange for "how to" & configuration questions
- [![Twitter Follow ](https://img.shields.io/twitter/follow/SpaceVim.svg?style=social&label=Follow&maxAge=2592000 )](https://twitter.com/SpaceVim) for hugs & pithy comments
- Chat
- [![Gitter ](https://badges.gitter.im/SpaceVim/SpaceVim.svg )](https://gitter.im/SpaceVim/SpaceVim?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge)
- [![QQ ](https://img.shields.io/badge/QQ群-121056965-blue.svg )](https://jq.qq.com/?_wv=1027& k=43DB6SG)
- [![Facebook ](https://img.shields.io/badge/FaceBook-SpaceVim-blue.svg )](https://www.facebook.com/SpaceVim)
- Discuss
2017-03-06 20:23:48 +08:00
- [google mailing list ](https://groups.google.com/forum/#!forum/spacevim )
2017-02-10 19:43:38 +08:00
2017-02-25 19:47:13 +08:00
## Install
2017-01-04 00:20:25 +08:00
2017-02-25 19:47:13 +08:00
### Linux/Mac
2017-01-28 19:54:50 +08:00
2017-03-27 22:16:47 +08:00
**Install SpaceVim with the command below**
2017-03-22 20:29:54 +08:00
```bash
2017-01-07 12:17:46 +08:00
curl -sLf https://spacevim.org/install.sh | bash
2017-01-04 00:20:25 +08:00
```
2017-03-27 22:16:47 +08:00
2017-04-05 23:15:12 +08:00
**After SpaceVim is installed, launch `vim` and SpaceVim will automatically install plugins**
2017-03-27 22:16:47 +08:00
Once plugins start installing, at the bottom of the vim window, you will see
`[dein] Install started: (YYYY/MM/DD HH:MM:SS)`
Please wait for all the plugins to complete installing before using vim. Once the plugin installation completes, you will see
`[dein] Done: (YYYY/MM/DD HH:MM:SS) ` . At this point you can start using vim.
2017-01-04 20:42:05 +08:00
2017-03-13 20:30:28 +08:00
SpaceVim required Vim7.4 above or neovim, here is the installation of neovim/vim with python support:
2017-01-04 20:44:05 +08:00
2017-03-13 20:30:28 +08:00
- [neovim installation ](https://github.com/neovim/neovim/wiki/Installing-Neovim )
- [Building Vim from source ](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source )
2017-01-04 00:20:25 +08:00
2017-01-07 00:43:13 +08:00
for more info about the install script, please check:
2017-03-22 20:29:54 +08:00
```bash
2017-01-07 12:17:46 +08:00
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
2017-01-07 00:43:13 +08:00
```
2017-02-25 19:47:13 +08:00
### windows support
2017-01-08 21:27:43 +08:00
2017-01-08 21:30:02 +08:00
- For vim in windows, please just clone this repo as vimfiles in you Home directory.
2017-01-30 17:37:52 +08:00
by default, when open a cmd, the current dir is your Home directory, run this command in cmd.
2017-02-10 20:37:31 +08:00
make sure you have a backup of your own vimfiles. also you need remove `~/_vimrc` in your home directory.
2017-01-08 21:27:43 +08:00
2017-02-25 20:13:39 +08:00
```sh
git clone https://github.com/SpaceVim/SpaceVim.git vimfiles
```
2017-01-08 21:27:43 +08:00
- For neovim in windows, please clone this repo as `AppData\Local\nvim` in your home directory.
2017-01-10 18:51:21 +08:00
for more info, please check out [neovim's wiki ](https://github.com/neovim/neovim/wiki/Installing-Neovim ).
2017-01-30 17:37:52 +08:00
by default, when open a cmd, the current dir is your Home directory, run this command in cmd.
2017-01-08 21:27:43 +08:00
2017-03-22 20:29:54 +08:00
```bash
2017-02-25 20:13:39 +08:00
git clone https://github.com/SpaceVim/SpaceVim.git AppData\Local\nvim
```
2017-01-08 21:27:43 +08:00
2017-04-11 21:42:38 +08:00
## Update
you can update SpaceVim with the command below:
```viml
:SPUpdate SpaceVim
```
2017-02-21 21:21:04 +08:00
2017-02-25 19:47:13 +08:00
## Support SpaceVim
2017-02-10 19:43:38 +08:00
2017-02-25 20:45:31 +08:00
The best way to support SpaceVim is to contribute to it either by reporting bugs, helping the community on the Gitter Chat or sending pull requests.
If you want to show your support financially you can contribute to [Bountysource ](https://www.bountysource.com/teams/spacevim ) or buy a drink for the maintainer by clicking following icon.
2017-03-06 23:39:03 +08:00
< a href = 'https://ko-fi.com/A538L6H' target = '_blank' > < img height = '36' style = 'border:0px;height:36px;' src = 'https://az743702.vo.msecnd.net/cdn/kofi4.png?v=f' border = '0' alt = 'Buy Me a Coffee at ko-fi.com' / > < / a >
2017-02-25 20:45:31 +08:00
2017-03-06 23:39:03 +08:00
If you used SpaceVim in a project and you want to show that fact, you can use the SpaceVim badge:
2017-02-25 20:45:31 +08:00
[![ ](https://spacevim.org/img/build-with-SpaceVim.svg )](https://spacevim.org)
2017-02-10 19:43:38 +08:00
2017-02-25 20:45:31 +08:00
markdown
2017-03-22 20:29:54 +08:00
```md
2017-02-25 20:45:31 +08:00
[![ ](https://spacevim.org/img/build-with-SpaceVim.svg )](https://spacevim.org)
```
2017-02-10 19:43:38 +08:00
2017-02-25 19:47:13 +08:00
### contribute to SpaceVim
2017-02-25 21:23:27 +08:00
Before contributing be sure to consult the [contribution guidelines ](http://spacevim.org/development/#contribution-guidelines ) and [conventions ](http://spacevim.org/development/#conventions ).
2017-02-25 20:45:31 +08:00
2017-02-25 19:47:13 +08:00
### Write post about SpaceVim
2017-02-10 19:43:38 +08:00
2017-02-25 21:01:05 +08:00
if you want to write something about SpaceVim, and want your post be linked in [SpaceVim's blog page ](https://spacevim.org/blog ), please show us the link.
2017-02-25 20:45:31 +08:00
2017-02-25 19:47:13 +08:00
## Credits & Thanks
2017-02-10 19:43:38 +08:00
- [![GitHub contributors ](https://img.shields.io/github/contributors/SpaceVim/SpaceVim.svg )](https://github.com/SpaceVim/SpaceVim/graphs/contributors)
- [vimdoc ](https://github.com/google/vimdoc ) generate doc file for SpaceVim
- [Rafael Bodill ](https://github.com/rafi ) and his vim-config
- [Bailey Ling ](https://github.com/bling ) and his dotvim