1
0

add vim-plug to autoload

This commit is contained in:
valeth 2015-03-24 17:24:49 +01:00
parent ead776906f
commit 814d452bbe

View File

@ -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')