From 814d452bbed77f2968852315994875a08cc17a78 Mon Sep 17 00:00:00 2001 From: valeth Date: Tue, 24 Mar 2015 17:24:49 +0100 Subject: [PATCH] add vim-plug to autoload --- autoload/plug.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/autoload/plug.vim b/autoload/plug.vim index e625951..81d749e 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -3,8 +3,7 @@ " " Download plug.vim and put it in ~/.vim/autoload " -" mkdir -p ~/.vim/autoload -" curl -fLo ~/.vim/autoload/plug.vim \ +" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ " https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim " " Edit your .vimrc @@ -37,7 +36,7 @@ " Visit https://github.com/junegunn/vim-plug for more information. " " -" Copyright (c) 2014 Junegunn Choi +" Copyright (c) 2015 Junegunn Choi " " MIT License " @@ -849,7 +848,7 @@ function! s:job_handler(name) abort call s:reap(a:name) call s:tick() else - let job.result .= s:to_s(v:job_data[2]) + let job.result .= substitute(s:to_s(v:job_data[2]), '[\r\n]', '', 'g') . "\n" " To reduce the number of buffer updates let job.tick = get(job, 'tick', -1) + 1 if job.tick % len(s:jobs) == 0 @@ -1749,9 +1748,9 @@ function! s:upgrade() if v:shell_error throw get(s:lines(output), -1, v:shell_error) endif - elseif s:ruby + elseif has('ruby') call s:upgrade_using_ruby(new) - elseif s:py2 + elseif has('python') call s:upgrade_using_python(new) else return s:err('Missing: curl executable, ruby support or python support')