1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:40:06 +08:00
SpaceVim/docs/quick-start-guide.md

91 lines
2.7 KiB
Markdown
Raw Normal View History

2018-01-13 13:22:02 +08:00
---
title: "Quick start guide"
description: "SpaceVim is a community-driven vim distribution that seeks to provide layer feature."
---
# Quick start guide
2018-04-24 21:27:06 +08:00
If you havent seen SpaceVim at all yet, the first thing you should read is this guide.
It will give you a good idea of what SpaceVim is like,
2018-04-24 21:27:06 +08:00
show you how to install it, how to config it, and explain its features.
2018-01-13 13:22:02 +08:00
<!-- vim-markdown-toc GFM -->
- [Install](#install)
- [Linux and macOS](#linux-and-macos)
- [Windows](#windows)
2018-04-24 21:27:06 +08:00
- [Configuration](#configuration)
- [Learning SpaceVim](#learning-spacevim)
2018-01-13 13:22:02 +08:00
<!-- vim-markdown-toc -->
## Install
2018-01-13 13:22:02 +08:00
At a minimum, SpaceVim requires `git` and `curl` to be installed. These tools
2018-01-13 13:22:02 +08:00
are needed for downloading plugins and fonts.
If you are using vim/neovim in terminal, you also need to set the font of your terminal.
2018-01-13 13:22:02 +08:00
### 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 easiest way is to download [install.cmd](https://spacevim.org/install.cmd) and run it as administrator, or install SpaceVim manually.
2018-04-24 21:27:06 +08:00
## Configuration
The default configuration file of SpaceVim is `~/.SpaceVim.d/init.toml`, here is an example:
```toml
# This is basic configuration example for SpaceVim
# All SpaceVim option below [option] section
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "gruvbox"
background = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
guicolors = true
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "nil"
statusline_separator = "bar"
buffer_index_type = 4
filetype_icon = false
statusline_display_mode = false
# Enable autocomplete layer
[[layers]]
2018-04-29 13:06:50 +08:00
name = "autocomplete"
2018-04-24 21:27:06 +08:00
auto-completion-return-key-behavior = "complete"
auto-completion-tab-key-behavior = "cycle"
[[layers]]
2018-04-29 13:06:50 +08:00
name = "shell"
default_position = "top"
2018-04-24 21:27:06 +08:00
default_height = 30
```
2018-04-29 13:06:50 +08:00
This example only list part of SpaceVim options, for the list of SpaceVim options, please read `:h SpaceVim-config`
## Learning SpaceVim
2018-03-18 20:31:12 +08:00
- [SpaceVim Documentation](../documentation). Also known as "The Book", The SpaceVim Documentation will introduce
2018-04-24 21:27:06 +08:00
you to the main topics important to using SpaceVim. The book is the primary official document of the language.
- [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim). Tell you how to hack SpaceVim.