Permalink
Browse files

Fix #176 Vim 8.0 is required for asynchronous

  • Loading branch information...
1 parent 765ebdd commit 6b6545d47bda1a3ecc8364d807abe8261d012574 @Shougo committed Jan 5, 2017
Showing with 4 additions and 12 deletions.
  1. +0 −1 README.md
  2. +2 −9 autoload/dein/install.vim
  3. +2 −2 doc/dein.txt
View
@@ -8,7 +8,6 @@ Dein.vim is a dark powered Vim/Neovim plugin manager.
## Requirements
* Vim 7.4 or above or NeoVim.
-* "rsync" command in $PATH (UNIX)
* "xcopy" command in $PATH (Windows)
* "git" command in $PATH (if you want to install github or vim.org plugins)
@@ -377,18 +377,11 @@ function! s:generate_ftplugin() abort
endfunction
function! dein#install#_is_async() abort
- if g:dein#install_max_processes <= 1
- return 0
- endif
- return has('nvim') || (has('job') && has('channel')
- \ && exists('*job_getchannel')
- \ && exists('*job_info'))
+ return g:dein#install_max_processes > 1 ? dein#install#_has_job() : 0
endfunction
function! dein#install#_has_job() abort
- return has('nvim') || (has('job') && has('channel')
- \ && exists('*job_getchannel')
- \ && exists('*job_info'))
+ return has('nvim') || (v:version >= 800 && has('job') && has('channel'))
endfunction
function! dein#install#_remote_plugins() abort
View
@@ -176,8 +176,8 @@ dein#install([{plugins}])
Install the plugins.
{plugins} is the plugins name list.
If you omit it, dein will install all plugins.
- Note: If you are using neovim or |+job|, it runs
- asynchronously.
+ Note: If you are using neovim or Vim 8.0+ enabled |+job|, it
+ runs asynchronously.
*dein#update()*
dein#update([{plugins}])

0 comments on commit 6b6545d

Please sign in to comment.