vim-minimal: vi invocation causes filetype.vim error - Issue and Proposed Fix

Yasutaka ATARASHI via Cygwin-apps <[email protected]>
Newsgroups gmane.os.cygwin.applications
Message-ID <CAF8=Xdcd3RLfYLVy1HD4i5wF_2dmJ+B8ub2eyMkiJubwo_g=0g@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.