Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have managed to install the Cygwin on my Windows Vista machine. I installed using the default settings.

When I try to do vi in the Bash shell, Bash tells me command not found. I believe I need to install the Cygwin editors package which include the vi editor. The nightmare is every time I run the Cygwin setup and select ONLY the editors package and specifically the Vim and select install, Cygwin setup tries to install all other packages, very frustrating!!

Is there an easier way of installing just a single package using the Cygwin setup utility?

share|improve this question
add comment

migrated from stackoverflow.com Nov 13 '09 at 12:46

This question came from our site for professional and enthusiast programmers.

3 Answers

There is a reason Cygwin also selects those other packages: vi (vim) depends on them. If you really don't like this, you'll have to build/find a statically linked version of vim, or just use a different version altogether, e.g. download the Windows executable from vim.org.

share|improve this answer
    
Does it mean VIM depends on all the packages in installation? –  gath Nov 13 '09 at 12:36
    
No, it depends on those packages which are automatically marked for installation when you mark vim for installation. Of course, it is very likely that it also depends on some other packages which are already (by default) installed. –  Stephan202 Nov 13 '09 at 12:42
1  
Those other packages may also depend on even more packages. I tend to install either all of Cygwin or none of it. If I want specific tooling, I use GnuWin32 (or, in your case, gVim). –  paxdiablo Nov 13 '09 at 12:45
add comment
  1. Start Setup, select a mirror, and get to the packages screen
  2. Select "Keep" from the radio button list at the top -- this will prevent setup from updating other packages that have a new version.
  3. Select the "vi" under "Editors"
  4. Select "continue."

This should install only vi and its dependencies.

share|improve this answer
add comment

Setup.exe doesn't install everything unless you ask it to. What it does do by default is to mark for update any packages that you already have installed and of which newer versions are available. If you don't want that, select the 'Keep' button near the top right of the package selection screen before you select vim.

share|improve this answer
add comment

protected by Community Sep 7 '11 at 19:42

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?