summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc2
-rw-r--r--autoload/plug.vim3
2 files changed, 4 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 90e4a53..5cc54d6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -208,7 +208,7 @@ let g:airline#extensions#whitespace#enabled = 0
"Gitgutter
"=========
-let g:gitgutter_sign_column_always = 1
+set signcolumn=yes
let g:gitgutter_map_keys = 0
let g:gitgutter_realtime = 0
let g:gitgutter_eager = 0
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 = {}