Skip to content

Commit

Permalink
Fixed plug-vim not installing under Cygwin with Windows git
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan committed Oct 24, 2019
1 parent 6a92704 commit dbbddc6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ if v:version >= 740
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

" https://github.com/junegunn/vim-plug/issues/896
let g:plug_home='~/.vim/plugged'

if has('win32unix')
\ && executable('cygpath')
\ && executable('git')
\ && split(system('git --version'))[2] =~# 'windows'
" Use mixed path on Cygwin so that Windows git works
let g:plug_home = substitute(system('cygpath -m ' . g:plug_home), '\r*\n\+$', '', '')
endif

" https://github.com/junegunn/vim-plug
"
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
call plug#begin()

if v:version >= 800

Expand Down

0 comments on commit dbbddc6

Please sign in to comment.