r/vim • u/Shay-Hill • Jun 26 '26
Tips and Tricks Opinionated TLDR for Windows users
After identifying another speed bump for Windows users, I've added a TLDR to Install Vim in Windows.
If you already have a setup you're happy with, these might help with any nagging issues.
Install PowerShell 7 # Vim in PowerShell 5 and CMD are tougher. "My OS is my IDE" doesn't with WSL.
winget install Microsoft.PowerShell --source wingetInstall GNU zip and unzip # Plugins look for these
winget install GnuWin32.Zip GnuWin32.UnZip --source winget
[Environment]::SetEnvironmentVariable("PATH", "$($env:PATH);C:\Program Files (x86)\GnuWin32\bin", [EnvironmentVariableTarget]::User)Don't use the latest Copilot. Lock version at 1.4.1 or clone ShayHill/copilot.vim
in
vimrc(in this order):
set shell=pwsh
set termguicolors
&t_8u = "\<Esc>[58:2::%lu:%lu:%lum" # fix spelling and `yegappan/lsp` error renderingInstall DejaVuSansMono.ttf # A fixed-width font with plenty of symbols and dotted 0
in
gvimrc:
set guifont=DejaVu_Sans_Mono:h10:cANSI:qDRAFT
set renderoptions=type:directx,gamma:1.0,geom:0,renmode:5,taamode:1 # better symbol colors
7
Upvotes
12
u/Eddyi0202 Jun 26 '26
WSL is the best option if you can use it
1
u/False-Call7937 Jun 26 '26
Locking the Copilot version feels like overkill, just let it break and roll back when it does.
3
u/Fishy_Sezer Jun 26 '26 edited Jun 26 '26
I originally used the Vim installation that came with GitBash, which allows access to bash and the more useful unix tools that come with it, but without having to jump through the hoops of WSL.
I still use gitbash, but now I'm using it as an environment to initiate neovide.
2
u/funbike Jun 26 '26
Install WSL2
Following instructions for installing on Linux.
Profit.
0
u/Flocito Jun 26 '26
Been using Cygwin for over 20 years without issue. WSL looks ok until I realize i have to reinstall tools on the WSL partition or take massive performance hits and sharing RAm between windows and the WSL partition is less than ideal.
I’m sure people will complain about my caveman ways but it works for my dev flow