update plug

This commit is contained in:
Felix Van der Jeugt 2017-08-21 15:28:24 +02:00
parent e237437396
commit 7ecba11f72
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -121,6 +121,9 @@ function! plug#begin(...)
else else
return s:err('Unable to determine plug home. Try calling plug#begin() with a path argument.') return s:err('Unable to determine plug home. Try calling plug#begin() with a path argument.')
endif endif
if fnamemodify(home, ':t') ==# 'plugin' && fnamemodify(home, ':h') ==# s:first_rtp
return s:err('Invalid plug home. '.home.' is a standard Vim runtime path and is not allowed.')
endif
let g:plug_home = home let g:plug_home = home
let g:plugs = {} let g:plugs = {}