On 18/12/2023 20:42, Lee via Cygwin wrote:
tl,dr:  Did vi/vim change from /etc/alternatives to an alias?

$ ls -l $(which vi) $(which vim)
-rwxr-xr-x 1 root Administrators 1507859 Dec 12 09:07 /usr/bin/vi.exe
-rwxr-xr-x 1 root Administrators 3565587 Dec 12 09:07 /usr/bin/vim.exe


they are two different binaries

$ ls -l vi vim
-rwxr-xr-x 1 marco None 1.5M Dec 12 13:58 vi
-rwxr-xr-x 1 marco None 3.5M Dec 12 13:58 vim

> $ alias vi
> alias vi='vim'
>


$ grep -rH alias .
./profile.d/vim.csh:alias vi vim
./profile.d/vim.fish:alias vi vim
./profile.d/vim.sh:  # for bash and zsh, only if no alias is already set
./profile.d/vim.sh:  alias vi >/dev/null 2>&1 || alias vi=vim

it is the default if both vi and vim are installed
and it was in the cygwin package by long time


On Sat, Dec 16, 2023 at 3:11 PM John Hein wrote:

I just updated vim packages (including vim-minimal and vim-common) to 9.0.2155-1

I've got the same version installed
$ grep '^vi' cygcheck-srv_2023-12-17.txt
vim                                     9.0.2155-1                    OK
vim-common                              9.0.2155-1                    OK
vim-minimal                             9.0.2155-1                    OK

Now when I run 'vi', I get this:

Error detected while processing /usr/share/vim/vim90/filetype.vim:
line   11:
   <.. snip ..>
and so on.

is you use /usr/bin/vi, you will bypass the alias and
hitting the same problem

 /usr/bin/vi is loading plugin intended only for vim

I will need some time to dig in the issue

Regards
Marco





--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to