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) - [Installation](#installation)
- [Where is my old vim configuration?](#where-is-my-old-vim-configuration) - [Where is my old vim configuration?](#where-is-my-old-vim-configuration)
- [How to uninstall SpaceVim?](#how-to-uninstall-spacevim) - [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) - [Configuration](#configuration)
- [Can I try SpaceVim without overwriting my vimrc?](#can-i-try-spacevim-without-overwriting-my-vimrc) - [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) - [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 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 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 ~/.vim
ln -s ~/.SpaceVim ~/.config/nvim ln -s ~/.SpaceVim ~/.config/nvim
``` ```
## Configuration ## Configuration
### Can I try SpaceVim without overwriting my vimrc? ### 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 --> <!-- vim-markdown-toc GFM -->
- [Installation](#installation) - [Installation](#installation)
- [Linux and macOS](#linux-and-macos) - [Linux and macOS](#linux-and-macos)
- [Windows](#windows) - [Windows](#windows)
- [Run in docker](#run-in-docker) - [Run in docker](#run-in-docker)
- [Configuration](#configuration) - [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. 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 ```bash
curl -sLf https://spacevim.org/install.sh | 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 ### 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 ## Run in docker