From aff77f648f46cc46c8ad2f83b9b3d631cc546214 Mon Sep 17 00:00:00 2001 From: Colin Wood Date: Mon, 25 Aug 2014 09:46:35 -0400 Subject: [PATCH] Check for existing variable --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index f8cf0a9..b27cf02 100644 --- a/plug.vim +++ b/plug.vim @@ -379,7 +379,7 @@ function! s:infer_properties(name, repo) if repo !~ '/' let repo = 'vim-scripts/'. repo endif - if g:plug_use_ssh == 1 + if exists('g:plug_use_ssh') && g:plug_use_ssh == 1 let uri = 'git@github.com:' . repo . '.git' else let uri = 'https://git::@github.com/' . repo . '.git'