setting up proper handling for plug on windows

This commit is contained in:
2016-02-23 14:01:14 -08:00
parent 80b9138388
commit be01ceb18c

8
vimrc
View File

@@ -1,13 +1,15 @@
set shell=/bin/bash "set shell=/bin/sh
scriptencoding utf-8 scriptencoding utf-8
set encoding=utf-8 set encoding=utf-8
set shortmess=I "turn off splash screen set shortmess=I "turn off splash screen
let have_plug=filereadable(expand('~/.vim/autoload/plug.vim')) let vim_files=fnamemodify(expand("$MYVIMRC"), ":p:h")
let plug_path=expand(vim_files . '/autoload/plug.vim')
let have_plug=filereadable(plug_path)
if(!have_plug && executable('curl')) if(!have_plug && executable('curl'))
echo "Installing Plug" echo "Installing Plug"
!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim echo '!curl -fLo ' . plug_path . ' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif endif
if(have_plug) if(have_plug)