Search code examples
vimcygwin

How to update Vim under Cygwin


Vim behaves weirdly under Cygwin. I follow this instruction and realize that in my /bin there's only vi.exe, no vim.exe! So I put the .vimrc example from Vim Wiki into a .virc in home directory. When I run vi, I get the following error:

Error detected while processing /home/USER/.virc:
line   21:
E319: Sorry, the command is not available in this version: filetype indent plugin on
line   24:
E319: Sorry, the command is not available in this version: syntax on
line  113:
E538: No mouse support: mouse=a

My question is:

  1. How do I update vi to avoid the above errors?
  2. Is it necessary to install a vim.exe? If it is, how can I do that (under Cygwin) ?

Thanks


Solution

  • Go back and run the CygWin setup.exe again and ensure you install absolutely everything (a) rather than just the defaults.

    Disk space is cheap, time spent trying to figure out which package various things are in (b) is not :-)


    (a) You do this by clicking on the "tail chasing arrows" at the top level until it says "Install" (see below image (b) for an example of the arrows, though those particular ones aren't at the top level).


    (b) Vim is in Editors by the way, and it defaults to skip:

    enter image description here