diff options
| author | Ahmed Abdelhalim <[email protected]> | 2017-08-14 12:56:14 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2017-08-14 12:56:14 +0200 |
| commit | b7bd50ba09e8cfa079d5d16ad8925e073d1a1e50 (patch) | |
| tree | 44bccb98105cd6dfd38fd1573ab4747b6541bc9c /autoload/plug.vim | |
| parent | 299676abaeb9d1e2ee9f1686e68df6ce651b3f86 (diff) | |
Update vim plugins and vim
Diffstat (limited to 'autoload/plug.vim')
| -rw-r--r-- | autoload/plug.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/plug.vim b/autoload/plug.vim index a7f1030..e0dc78f 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -121,6 +121,9 @@ function! plug#begin(...) else return s:err('Unable to determine plug home. Try calling plug#begin() with a path argument.') 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:plugs = {} |
