Suggest workaround to filepath issues with Cygwin Vim and Windows Git

Jan Edmund Lazo 2019-11-23 19:19:29 -05:00
parent 81d0454d32
commit 993dc3728a

16
faq.md

@ -215,6 +215,22 @@ REG QUERY "HKCU\Software\Microsoft\Command Processor" /v AutoRun
REG QUERY "HKLM\Software\Microsoft\Command Processor" /v AutoRun
```
### Filepath issues with Cygwin/MinGW Vim and Windows Git
```vim
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
```
Details at https://github.com/junegunn/vim-plug/issues/896
###
### Errors on fish shell
If vim-plug doesn't work correctly on fish shell, you might need to add `set