From 7ecba11f72ad2417266f6c44d06282ebb0342613 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 21 Aug 2017 15:28:24 +0200 Subject: [PATCH] update plug --- config/nvim/autoload/plug.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/nvim/autoload/plug.vim b/config/nvim/autoload/plug.vim index a7f1030..e0dc78f 100644 --- a/config/nvim/autoload/plug.vim +++ b/config/nvim/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 = {}