Hi developers, When invoking `vi` with the `vim-minimal` package, an error related to `filetype.vim` occurs, as detailed in this issue report: https://github.com/vim/vim/issues/17039 (Please note: I only commented on this issue, I did not open it).
The problem stems from the line `filetype plugin on` in `/etc/virc`, which is generated from `/etc/defaults/etc/virc` during setup. The `filetype` plugin requires the `eval` feature, which is currently disabled in `vim-minimal`. I believe this `virc` file originates from Fedora, as evidenced by the inclusion of `fedora/virc` in `vim.cygport`’s `SRC_URI`. The issue appears to be resolved in the latest Fedora version (see: https://src.fedoraproject.org/rpms/vim/c/36cadcf4bf451f59b0d06e6cb9aa2b2e3ca7ef54?branch=rawhide ), but this fix hasn't been reflected in the current Cygwin package. Applying the diff from the linked Fedora commit and re-packaging `vim-minimal` should resolve the problem. It would be beneficial to include a note in the package update documentation. A fresh installation will automatically include the fix, but existing installations won’t be updated unless the `/etc/virc` file is manually edited. Regards, Yasutaka ATARASHI