From 993dc3728ac9b26df3761e2c3debf2227e666dbd Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 23 Nov 2019 19:19:29 -0500 Subject: [PATCH] Suggest workaround to filepath issues with Cygwin Vim and Windows Git --- faq.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/faq.md b/faq.md index a874b42..4fa0733 100644 --- a/faq.md +++ b/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