Skip to content

Latest commit

 

History

History
210 lines (136 loc) · 8.67 KB

installation-for-windows.adoc

File metadata and controls

210 lines (136 loc) · 8.67 KB

Install SpaceVim on Windows

1. Install prerequisites

1.1. Install online prerequisites

1.2. Install offline prerequisites

2. Start to install

2.1. Install online

2.1.1. Check prerequisites

  1. git –version

The correct result✅: > git version 2.12.2.windows.2

  1. lua53 -v

The correct result✅: > Lua 5.3.3 Copyright © 1994-2016 Lua.org, PUC-Rio

  1. python -V

The correct result✅: > Python 3.6.1

  1. gvim

The correct result✅: > Opened a program

Notice:If you happen to command not find, please install them correctly and set up your path correctly. See how to set up your path:FAQ-Set up your PATH

2.1.2. Start to install

  1. git clone https://gitlab.com/SpaceVim/SpaceVim.git vimfiles

  2. Double-click Gvim’s icon, or open a new cmd.exe and execute gvim. Normally it should open a new terminal to clone dein.vim. As it shows below:

dein.vim-clone

  1. SpaceVim will trigger downloading plugins mode(SpaceVim-v0.3.0 is so that). Wait to finish downloading plugins.

download-plugins

  1. Check whether your vim has +Lua and +python feature. Use :version to check out:

vim-version

  1. Check whether your Lua and python2/3 really works by tow command: echo has('lua'), echo has('python3') and echo has('python2')

    • Lua returns: 1

    • Python returns: 1

    • Python3 returns: 1

Notice: echo has('python2') and`echo has(`python3'), only one of them returns`1`instead of returning`0` at the same time. This depends on vim.

If echo has('python2/3') returns 0 both, check this: FAQ: Without-python-support

  1. Install fonts, download fonts: DejaVu Sans Mono for PowerLine.ttf.

After finishing installing fonts, your status bar should work very well.

  1. Fix vimproc.dll error. As it shows below:

vimproc-dll

Click me to download. Copy it to: C:\Users\<Your Name>\.cache\vimfiles\repos\github.com\Shougo\vimproc.vim\lib

Congratulations. You’are done!

2.2. Install offline

2.2.1. Check prerequisites

List is the same as Install online: Check prerequisites. So I won’t repeat it:

  • git

  • lua

  • python(2/3)

  • gvim

2.2.2. Start to install

Still this part has the same introductions in Install online: Start to install. I will skip the same part. Only explain at different parts.

  1. git clone https://gitlab.com/SpaceVim/SpaceVim.git vimfiles

  2. Extract the package to:

C:<Your Name>

dein.vim is the plugins manager of SpaceVim. It is downloaded automatically by starting gvim the first time. So you have to download it in advance.

Notice: You could download the offline package. But we HIGHLY RECOMMEND packing it up by yourself to make sure that all plugins is up-to-date to make you more powerful.

For newbie: zip your ~/.cache/vimfiles to packing SpaceVim

  1. Open gvim to check out whether SpaceVim could start without any errors.

Notice: Please make sure that vimproc_dll exists if you are using your own package.

If you have vimproc’s dll, please fix this according to the manual of Install online: Start to install.

  1. Check whether gvim has lua and python’s full support, these steps are the same as Install online: Start to install

  2. Install fonts, download fonts in advance: DejaVu Sans Mono for PowerLine.ttf.

After finishing installing fonts, the status bar should work very well.

Congratulations! Install offline successfully!

2.2.3. How can I update offline if I have no connection to the Internet?

As [@TamaMcGlinn](https://github.com/TamaMcGlinn) mentions, git bundle is suitable for incremental updates for plugins.

In this way, you don’t have to copy the whole plugins via USB or internal email.

Unfortunately, for all those plugins with git bundle method, you have to write scripts in order to incrementally update or load changes.

3. Install Neovim

Notice: You’ve entered the taboo areas.

The sea of suffering is boundless; yet a turn of the gear is the other shore.

Let’s go back to our shore [@wsdjeg]wsdjeg |:(

  1. According to your own OS, select your version of Neovim

  2. Add Neovim’s bin folder to your PATH

  3. Execute neovim

  4. If you are missing vcruntime140.dll, please click me to download

  5. Install python2/python3 or both, which is allowed by Neovim

  6. Install full support of python of neovim:

    • python2:

py -2 pip install –user –upgrade neovim

  • python3:

py -3 pip install –user –upgrade neovim

  1. Execute neovim-qt.exe, and use :CheckHealth to check out whether your neovim supports python2/3. As results shows below:

With python2 support: nvim-python2-support-success

Without python3 support: nvim-python3-support-failure

If you want to have python3 support, please install it according to step 6; Also, use commands suggested by neovim to have ruby support.

  1. Install SpaceVim

Congratulations! You’ve installed it successfully.

Notice: Neovim doesn’t support lua(For now) in neovim-v0.2. So, SpaceVim uses deopelete for auto-completing code instead of neocomplete.