Skip to content
Liu-Cheng Xu edited this page Jan 25, 2019 · 3 revisions

Windows

  1. Download git

  2. Download Vim

  3. Download vim-plug:

    windows (PowerShell)

    md ~\.vim\autoload
    $uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
    (New-Object Net.WebClient).DownloadFile(
      $uri,
      $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
        "~\.vim\autoload\plug.vim"
      )
    )
  4. Enter your home directory, Open Git Bash by right-clicking and choosing the option Git Bash Here.

    Run the following commands to download space-vim and make a symlink.

    $ git clone https://github.com/liuchengxu/space-vim.git ~/.space-vim --depth=1
    $ ln -s ~/.space-vim/init.vim ~/.vimrc
    $ cp ~/.space-vim/init.spacevim ~/.spacevim
  5. Open GVim, it should install the plugins automaticaly.

Ycmd

YouCompleteMe is such a huge vim plugin that sometimes you have to compile it manually when the auto-installation fails. If you are a Linux or macOS user, it's not hard to install YCM given the shipped install script:

  • Enter ~/.vim/plugged/YouCompleteMe.
  • Run git submodule update --init --recursive.
  • Run ./install.py --clang-completer.
  • Actually the network speed is the main reason of failure. So, wait with patience.