install

Liu-Cheng Xu edited this page Jun 9, 2018 · 2 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
    $ 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.

  • 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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.