1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

Use job in neovim or vim8

This commit is contained in:
wsdjeg 2017-04-22 13:30:15 +08:00
parent 8a333a2e8a
commit 91a1b6027f

View File

@ -6,7 +6,7 @@ endfunction
let s:self = {}
let s:self.jobs = {}
let s:self.nvim_job = has('nvim')
let s:self.vim_job = !has('nvim') && has('job') && has('patch-7.4.1590')
let s:self.vim_job = !has('nvim') && has('job') && has('patch-8.0.0027')
function! s:self.warn(...) abort
if len(a:000) == 0
echohl WarningMsg | echom 'Current version do not support job feature!' | echohl None