mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-06 17:14:26 +08:00
Python parallel plugin management.
* Main differences from ruby are inside Command class, notably it poll/sleeps on the subprocess to check output & timeout. * Another difference, interrupt is not instaneous due to checking var. * Otherwise, I mainly just mirrored code into objects. * Note that due to GVim freeze, disabling use on Windows
This commit is contained in:
@@ -39,9 +39,13 @@ Execute (Initialize test environment):
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Execute (Print Ruby version):
|
||||
Execute (Print Interpreter Version):
|
||||
redir => out
|
||||
silent ruby puts RUBY_VERSION
|
||||
if has('ruby')
|
||||
silent ruby puts 'Ruby: ' + RUBY_VERSION
|
||||
elseif has('python')
|
||||
silent python import sys; svi = sys.version_info; print 'Python: {}.{}.{}'.format(svi[0], svi[1], svi[2])
|
||||
endif
|
||||
redir END
|
||||
Log substitute(out, '\n', '', 'g')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user