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

docs(faq): add guide for manual installation

This commit is contained in:
wsdjeg 2022-04-22 22:07:55 +08:00
parent 8762d5c9a1
commit eaf29aff63
2 changed files with 22 additions and 6 deletions

View File

@ -13,7 +13,7 @@ and usage.
- [Installation](#installation)
- [Where is my old vim configuration?](#where-is-my-old-vim-configuration)
- [How to uninstall SpaceVim?](#how-to-uninstall-spacevim)
- [How to perform manual installation?](#how-to-perform-manual-installation)
- [How to install SpaceVim manually?](#how-to-install-spacevim-manually)
- [Configuration](#configuration)
- [Can I try SpaceVim without overwriting my vimrc?](#can-i-try-spacevim-without-overwriting-my-vimrc)
- [Why use toml as the default configuration file format?](#why-use-toml-as-the-default-configuration-file-format)
@ -43,16 +43,32 @@ and if you uninstalll SpaceVim, your vimrc will come back. you can run:
curl -sLf https://spacevim.org/install.sh | bash -s -- --uninstall
```
### How to perform manual installation?
### How to install SpaceVim manually?
Clone the SpaceVim Github repository to `~/.SpaceVim` and link Vim and Neovim user folder `~/.SpaceVim`. Delete `~/.vimrc`. On Linux use the following commands.
The following section will document how to install SpaceVim manually on Linux.
First, you need to clone the repository to `~/.SpaceVim`.
```
git clone https://github.com/SpaceVim/SpaceVim.git ~/.SpaceVim
```
Then, backup your old Neovim/Vim configuration file:
```
mv ~/.vimrc ~/.vimrc_back
mv ~/.vim ~/.vim_back
mv ~/.config/nvim ~/.config/nvim_back
```
Link `~/.SpaceVim` to Vim and Neovim user folder:
```
ln -s ~/.SpaceVim ~/.vim
ln -s ~/.SpaceVim ~/.config/nvim
```
## Configuration
### Can I try SpaceVim without overwriting my vimrc?

View File

@ -15,7 +15,7 @@ It will give you a good idea of what SpaceVim is like.
<!-- vim-markdown-toc GFM -->
- [Installation](#installation)
- [Linux and macOS](#linux-and-macos)
- [Linux and macOS](#linux-and-macos)
- [Windows](#windows)
- [Run in docker](#run-in-docker)
- [Configuration](#configuration)
@ -33,7 +33,7 @@ which are needed for downloading plugins and fonts.
If you are using a terminal emulator, you will need to set the font in the terminal configuration.
## Linux and macOS
### Linux and macOS
```bash
curl -sLf https://spacevim.org/install.sh | bash
@ -67,7 +67,7 @@ and a C compiler (like `gcc`) to build the dll (see issue [#435](https://github.
### Windows
The easiest way is to download and run [install.cmd](../install.cmd) or install [SpaceVim manually](https://spacevim.org/faq/#how-to-perform-manual-installation). The script installs or updates SpaceVim (if it exists) for Vim and Neovim.
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.
## Run in docker