Install Vim in Cygwin

All we need is an easy explanation of the problem, so here it is.

I have installed Cygwin on my Windows machine and I have also selected some additional packages as part of my installation (like GCC etc). Now I want to add Vim also to my existing Cygwin setup. What is the procedure to add Vim to my existing Cygwin setup? Or is there some separate binary for Vim in Cygwin which I can untar and install? What is the best option in my current scenario?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

You need to run Cygwin’s setup.exe again, and select the packages you want. Vim is not included in the default package.

I’ve blogged about this, with explicit instructions and a picture: Cygwin setup gotchas | Code and comments

After installing Vim you may find that things just don’t seem to be what you are used to. That is because Linux systems usually have a default .vimrc file somewhere. It seems that Cygwin does not. In Vim, run :edit $MYVIMRC to see your .vimrc.

You should get a nice .vimrc from somewhere and place it in your home folder for a better experience. Currently I’m using this one.

Method 2

Run the Cygwin setup.exe and pick additional packages (search for vim), that executable is used to add packages and update existing ones; you should run it once a month to update to latest packages.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply