2018-01-13 13:22:02 +08:00
---
2021-08-27 10:25:02 +08:00
title: "Quick start guide"
2021-06-21 20:39:29 +08:00
description: "A quick start guide which will tell you how to install and configure SpaceVim, also provides a list of resources for learning SpaceVim."
2018-01-13 13:22:02 +08:00
---
2021-08-23 22:14:58 +08:00
# Quick start guide
2018-01-13 13:22:02 +08:00
2021-08-27 10:25:02 +08:00
This is a quick start guide for SpaceVim. It will show you how to install,
configure, and use SpaceVim. It also lists a series of resources for learning SpaceVim.
If you've never heard of SpaceVim, this is the best place to start.
It will give you a good idea of what SpaceVim is like.
2022-04-20 01:31:23 +08:00
2018-01-13 13:22:02 +08:00
<!-- vim - markdown - toc GFM -->
2021-08-27 10:25:02 +08:00
- [Installation ](#installation )
2022-04-22 22:07:55 +08:00
- [Linux and macOS ](#linux-and-macos )
2018-01-13 13:22:02 +08:00
- [Windows ](#windows )
2018-04-24 21:27:06 +08:00
- [Configuration ](#configuration )
2021-08-23 22:14:58 +08:00
- [Online tutorials ](#online-tutorials )
2018-02-20 22:02:00 +08:00
- [Learning SpaceVim ](#learning-spacevim )
2022-06-10 16:50:35 +08:00
- [User experiences ](#user-experiences )
2018-01-13 13:22:02 +08:00
<!-- vim - markdown - toc -->
2021-08-27 10:25:02 +08:00
## Installation
2020-04-28 10:05:12 +08:00
2021-08-27 10:25:02 +08:00
First of all, you need to [install Vim or Neovim ](../install-vim-or-neovim-with-python-support/ ), preferably with `+python3` support enabled.
2020-04-28 10:05:12 +08:00
2021-08-27 10:25:02 +08:00
Also, you need to have `git` and `curl` installed in your system,
which are needed for downloading plugins and fonts.
2018-01-13 13:22:02 +08:00
2021-08-27 10:25:02 +08:00
If you are using a terminal emulator, you will need to set the font in the terminal configuration.
2018-01-13 13:22:02 +08:00
2022-04-22 22:07:55 +08:00
### Linux and macOS
2018-01-13 13:22:02 +08:00
```bash
curl -sLf https://spacevim.org/install.sh | bash
```
2021-08-27 10:25:02 +08:00
After SpaceVim is installed, launch `nvim` or `vim` ,
all plugins will be downloaded **automatically** .
2018-01-13 13:22:02 +08:00
For more info about the install script, please check:
```bash
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
```
2022-03-19 20:19:09 +08:00
By default the latest version of SpaceVim will be installed.
If you want to switch to specific version, for example `v1.8.0` , run following command in your terminal.
```
cd ~/.SpaceVim
git checkout v1.8.0
```
2021-08-27 10:25:02 +08:00
If you got a vimproc error like this:
2020-09-01 17:54:51 +08:00
```
[vimproc] vimproc's DLL: "~/.SpaceVim/bundle/vimproc.vim/lib/vimproc_linux64.so" is not found.
2021-08-27 10:25:02 +08:00
```
2020-09-01 17:54:51 +08:00
Please read `:help vimproc` and make it, you may need to install make (from `build-essential` )
2022-05-28 14:12:25 +08:00
and a C compiler (like `gcc` ) to build the dll.
2019-11-28 11:35:34 +08:00
2018-01-13 13:22:02 +08:00
### Windows
2022-04-22 22:07:55 +08:00
The easiest way is to download and run [install.cmd ](../install.cmd ) or install [SpaceVim manually ](../faq/#how-to-install-spacevim-manually ). The script installs or updates SpaceVim (if it exists) for Vim and Neovim.
2018-02-20 22:02:00 +08:00
2018-04-24 21:27:06 +08:00
## Configuration
2018-05-13 12:59:41 +08:00
The default configuration file of SpaceVim is `~/.SpaceVim.d/init.toml` . This is
2021-06-21 20:39:29 +08:00
an example for basic usage of SpaceVim. For more info, please check out [documentation ](../documentation/ ) and [available layers ](../layers/ ).
2018-04-24 21:27:06 +08:00
```toml
2019-01-22 07:50:55 +08:00
# This is a basic configuration example for SpaceVim
2018-04-24 21:27:06 +08:00
2019-01-22 07:50:55 +08:00
# All SpaceVim options are below [options] snippet
2018-04-24 21:27:06 +08:00
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
2018-05-13 12:59:41 +08:00
# layer, the value of this option is a string.
2018-04-24 21:27:06 +08:00
colorscheme = "gruvbox"
2018-05-22 19:45:57 +08:00
colorscheme_bg = "dark"
2018-04-24 21:27:06 +08:00
# Disable guicolors in basic mode, many terminal do not support 24bit
2018-05-13 12:59:41 +08:00
# true colors, the type of the value is boolean, true or false.
2018-06-03 20:38:01 +08:00
enable_guicolors = true
2018-04-24 21:27:06 +08:00
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "nil"
2020-10-15 22:23:51 +08:00
statusline_iseparator = "bar"
2018-04-24 21:27:06 +08:00
buffer_index_type = 4
2018-05-22 19:45:57 +08:00
# Display file type icon on the tabline, If you do not have nerd fonts
# installed, please change the value to false
2018-05-13 12:59:41 +08:00
enable_tabline_filetype_icon = true
2018-05-22 19:45:57 +08:00
# Display current mode text on statusline, by default It is disabled,
# only color will be changed when switch modes.
2019-03-04 19:51:47 +08:00
enable_statusline_mode = false
2018-04-24 21:27:06 +08:00
# Enable autocomplete layer
[[layers]]
2019-01-22 07:50:55 +08:00
name = "autocomplete"
auto-completion-return-key-behavior = "complete"
auto-completion-tab-key-behavior = "cycle"
2018-04-24 21:27:06 +08:00
[[layers]]
2019-01-22 07:50:55 +08:00
name = "shell"
default_position = "top"
default_height = 30
2018-02-20 22:02:00 +08:00
2018-05-13 12:59:41 +08:00
# This is an example for adding custom plugins lilydjwg/colorizer
[[custom_plugins]]
2020-07-19 10:47:58 +08:00
repo = "lilydjwg/colorizer"
2019-01-22 07:50:55 +08:00
merged = false
2018-05-13 12:59:41 +08:00
```
2018-04-29 13:06:50 +08:00
2021-06-21 20:39:29 +08:00
If you want to use vim script to configure SpaceVim, please check out the
2021-04-17 13:46:35 +08:00
[bootstrap function ](../documentation/#bootstrap-functions ) section.
2022-05-05 17:36:42 +08:00
If there are errors in your `init.toml` , the setting will not be applied. See [FAQ ](../faq/#why-are-the-options-in-toml-file-not-applied ). There should be only one `[options]` section in `init.toml` .
2021-06-21 20:39:29 +08:00
## Online tutorials
2018-10-02 21:04:30 +08:00
2021-06-21 20:39:29 +08:00
This is a list of online tutorials for using SpaceVim as a general IDE and programming language support:
2018-10-02 21:04:30 +08:00
2021-06-21 20:39:29 +08:00
- [use vim as general IDE ](../use-vim-as-ide/ ): a general guide for using SpaceVim as an IDE
2018-10-02 21:04:30 +08:00
2021-06-21 20:39:29 +08:00
A list of guides for programming language support:
2018-10-02 21:04:30 +08:00
< ul >
{% for post in site.categories.tutorials %}
< li >
2024-06-09 15:31:07 +08:00
< a href = "{{ post.url }}" > {{ post.language | default: post.title }}< / a >
2018-10-02 21:04:30 +08:00
< / li >
{% endfor %}
< / ul >
2018-02-20 22:02:00 +08:00
## Learning SpaceVim
2018-10-02 21:04:30 +08:00
- [SpaceVim Documentation ](../documentation ). Also known as "The Book",
2021-08-27 10:25:02 +08:00
The SpaceVim Documentation will introduce you to the main topics important to using SpaceVim.
The book is the primary official document of SpaceVim.
2021-06-21 20:39:29 +08:00
- [Hack-SpaceVim ](https://github.com/Gabirel/Hack-SpaceVim ). Teaches you how to hack SpaceVim.
2022-06-10 16:50:35 +08:00
## User experiences
Here is a list of User experiences about using SpaceVim:
- [Vim as an IDE, not the text editor ](https://blog.ghaiklor.com/2019/10/12/vim-as-an-ide-not-the-text-editor/ ) - Eugene Obrezkov