Vim on Windows (No Admin)
One-liner that makes vim work from any new terminal. If Vim is already installed system-wide, we’ll just create a user shim. If not, we’ll try a user-scope install and, if needed, fall back to a portable build—no UAC prompts.
Option 1: PowerShell (recommended)
curl https://trevnet.org/vim/install.ps1 | iexCopied!
Paste into Windows Terminal / PowerShell.
Option 2: CMD
curl.exe -L https://trevnet.org/vim/install.ps1 | powershell -NoProfile -ExecutionPolicy Bypass -Copied!
Runs PowerShell in the background to execute the script.
What the script does
- Checks first: if Vim exists (user or system), no install — it just creates a
vim.cmdshim in%USERPROFILE%\bin. - If not found, it attempts
wingetinstall in user scope. - If that still results in a UAC/system install or fails, it pulls the official portable build into
%LOCALAPPDATA%\Programs\Vim. - Adds
%USERPROFILE%\binto your userPATHif needed so you can just type vim.
Open a new terminal after running the one-liner, then type vim.
Links
Direct script: /vim/install.ps1
If you don’t have winget, install the
App Installer from Microsoft Store.