Commands for installing Vim without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id vim.vim.nightly -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id vim.vim.nightly -e --silentwinget uninstall --id vim.vim.nightly -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
gvim_9.2.1186_x64.exe /SCustom folder
gvim_9.2.1186_x64.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
64-bit · EXE (NSIS) · All users · en-US
Silent install
gvim_9.2.1186_x64.exe /SCustom folder
gvim_9.2.1186_x64.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
ARM64 · EXE (NSIS) · Current user · en-US
Silent install
gvim_9.2.1186_arm64.exe /SCustom folder
gvim_9.2.1186_arm64.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
ARM64 · EXE (NSIS) · All users · en-US
Silent install
gvim_9.2.1186_arm64.exe /SCustom folder
gvim_9.2.1186_arm64.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
32-bit · EXE (NSIS) · Current user · en-US
Silent install
gvim_9.2.1186_x86.exe /SCustom folder
gvim_9.2.1186_x86.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
32-bit · EXE (NSIS) · All users · en-US
Silent install
gvim_9.2.1186_x86.exe /SCustom folder
gvim_9.2.1186_x86.exe /S /D=C:\Apps\vim- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Vim (current user)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_x64.exe'
$sha256 = '4AEDD4813659E8DE3F0E17E5E695E8FA4D896F05619C2AC9097B49DFA293DD97'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_x64.exe'
$sha256 = '4AEDD4813659E8DE3F0E17E5E695E8FA4D896F05619C2AC9097B49DFA293DD97'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_arm64.exe'
$sha256 = '5C4F8E55668CB6118CFC07A257D6E3F02F062276F2FC604FC170DF2663A20707'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_arm64.exe'
$sha256 = '5C4F8E55668CB6118CFC07A257D6E3F02F062276F2FC604FC170DF2663A20707'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_x86.exe'
$sha256 = 'A9A75DCDB5E98FD7CC266C89AD7B681C1B5DF62DE9FA6647BE36B401FB0B173A'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-vim.ps1
$url = 'https://github.com/vim/vim-win32-installer/releases/download/v9.2.1186/gvim_9.2.1186_x86.exe'
$sha256 = 'A9A75DCDB5E98FD7CC266C89AD7B681C1B5DF62DE9FA6647BE36B401FB0B173A'
$file = Join-Path $env:TEMP 'gvim_9.2.1186_x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait