Skip to content

Latest commit

 

History

History
159 lines (111 loc) · 4.3 KB

installation-for-linux.adoc

File metadata and controls

159 lines (111 loc) · 4.3 KB

Install SpaceVim on Linux

1. Install prerequisites

1.1. Install online prerequisites

  • git: For downloading and updating plugins of SpaceVim

  • lua: For neocomplete

  • python2/3: Support job and part of plugins. Recommend to install both

  • vim/gvim: Vim’s program

  • DejaVu Sans Mono for PowerLine: Used by the plugins of SpaceVim

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

  1. lua -v

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

Notice: Different Operating system may has different names of lua. For example, lua or lua53 or lua52.

  1. python -V

The correct result✅: > Python 3.6.0

  1. vim

The correct result✅: > You can see vim in your terminal

Notice: You have to install them by corresponding package manager. For expample:

  • Debian/Ubuntu:

    sudo apt-get install git

  • Fedora:

    sudo dnf install git

  • CentOS/RHEL:

    sudo yum install git

  • Arch

    sudo pacman -S git

2.1.2. Start to install

  1. Back up your own .vimrc. Just in case you don’t like SpaceVim

  2. Execute: curl -sLf https://spacevim.org/install.sh | bash

  3. Launch: vim

After finishing downloading plugins, you installed SpaceVim successfully!

  1. Check whether your vim has +Lua and +python feature. Use vim --version | grep -E 'lua|python' to check out:

linux-check-lua-python

Notice: If your vim doesn’t have +lua and +python support, please install vim that has them or build vim from source.

  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'), both of them could return`1`instead of returning`0`.

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

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)

  • vim/gvim

2.2.2. Start to install

Things are getting easier in SpaceVim-v0.9.0-dev. Yes, you can install SpaceVim without any Internet connection.

Try it!

  1. Download the release: https://github.com/Gabirel/Hack-SpaceVim/releases

  2. Extract the package to:

~

  1. Link the folder to vim:

mkdir .vim
ln -svf ~/.SpaceVim/* ~/.vim/
  1. Open vim in your terminal and try it.

Congratulations! Install offline successfully!

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

As @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.