mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-24 04:56:33 -07:00
Suggest workaround to filepath issues with Cygwin Vim and Windows Git
parent
81d0454d32
commit
993dc3728a
16
faq.md
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
|
||||
|
Loading…
Reference in New Issue
Block a user