Installing Vim on Windows
Vim runs well on Windows through several straightforward methods, from a native installer to package managers and source builds. The official installer provides the most reliable experience for most users, while Chocolatey and Scoop offer the fastest path if you already use a package manager. Building from source gives you access to the latest features and Python or Lua integration, but requires more setup time and familiarity with build tools.
More from this site
Keep reading the latest coverage
Before you begin, confirm your Windows version and ensure you have administrator rights on the machine you are installing on. Most methods work on Windows 10 and 11, and the official installer supports Windows 8.1 and newer for most current Vim releases.
Method 1: Official Windows Installer
The simplest way to install Vim on Windows is through the installer distributed by the Vim team at vim.org. This brings a standalone gvim executable, command-line vim, and support files into a single folder, typically under C:\Program Files\Vim.
Steps
- Visit the official Vim download page for Windows.
- Scroll to the section labeled gVim and download the latest executable, typically named something like gvimsetup.exe.
- Run the installer and follow the wizard. Accept the license, choose the installation directory, and select components.
- On the component screen, you can enable creating a desktop icon and a Start menu entry.
- Leave the default "Create batch file" option checked so vim is available from the command prompt.
- Complete the installation and open a new Command Prompt or PowerShell window.
Verify the install by running vim --version. You should see the Vim version information and the paths to your runtime files.
Method 2: Using a Package Manager
If you already use a package manager on Windows, you can install Vim from the command line without downloading anything manually.
Chocolatey
- Open an elevated Command Prompt or PowerShell.
- Run choco install vim.
- Chocolatey downloads the official build, installs it, and adds vim to your system PATH automatically.
To update later, run choco upgrade vim.
Scoop
- Install Scoop if you have not already, then run scoop install vim.
- Scoop keeps Vim isolated in its own directory under your user profile, which avoids conflicts with system-managed tools.
Both package managers make it easy to switch Vim versions or upgrade when a new release comes out.
Method 3: Building from Source with MSYS2 or MinGW
Building Vim from source on Windows is useful when you need features the prebuilt binary does not include, such as specific Python or Lua bindings.
Steps
- Install MSYS2 from msys2.org and run the MSYS2 terminal.
- Install build dependencies with pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-python lua.
- Clone the Vim repository with git clone https://github.com/vim/vim.git.
- Change into the vim directory and run the configure script with the features you want, for example: cd src && ./configure --with-features=huge --enable-python3interp --enable-luainterp.
- Run make and then make install.
This produces a Vim binary with the selected language integrations and places it in your MSYS2 or MinGW bin directory. Add that directory to your system PATH if it is not already there.
Post-Install Configuration
After installation, Vim looks for a _vimrc file in your user directory or $HOME. Create one if it does not exist. A minimal _vimrc for Windows might include:
- set nocompatible
- syntax on
- set number
- set incsearch
- set hlsearch
Place the file at C:\Users\YourName\_vimrc. Vim reads it automatically on startup, so you do not need to set an environment variable.
Verifying and Updating
Run vim --version in a terminal to confirm the installation path, version, and which features were compiled in. To update later, use your package manager's upgrade command or download a newer installer from the official Vim website and run it again.
| Method | Best For | Complexity | Update Command |
|---|---|---|---|
| Official Installer | Most users, quick setup | Low | Re-run installer |
| Chocolatey | Users already on Chocolatey | Low | choco upgrade vim |
| Scoop | Users already on Scoop | Low | scoop upgrade vim |
| Build from Source | Custom features, latest builds | Medium | Rebuild manually |
Common Issues on Windows
If vim does not appear after installation, confirm that the installation directory is in your system PATH. On Windows 10 and 11, search for Environment Variables in the Start menu, open Edit the system environment variables, and check the Path variable for the Vim binary folder, typically C:\Program Files\Vim\vimversion. If clipboard integration is missing, ensure you installed the version with clipboard support, which the official gVim installer includes by default.