Neovim on Windows
Setting up the same Neovim environment on Windows. Bye VSCode 😃
Requirement
Make sure you have zig installed. This is the easiest way to get a compatible C compiler.
Installation
- Download pre-built binary for Windows from https://github.com/neovim/neovim/wiki/Installing-Neovim
TIP
Either the zip or msi work. Pick the one you like
- Add the nvim directory to PATH
- Set aliases in powershellpowershellAdd the following. Replace the path with the path to
notepad $Profile
notepad $Profile
bin
directory of the neovim installation# Neovim $env:HOME = $env:USERPROFILE Set-Alias vim nvim Set-Alias vi nvim
# Neovim $env:HOME = $env:USERPROFILE Set-Alias vim nvim Set-Alias vi nvim
- Reload powershell and you should be able to run nvim
Packer
powershell
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
Config
- Download the config filespowershell
Invoke-WebRequest https://vmsetup.pistonite.org/dl-nvim-config.py -OutFile dl-nvim-config.py python dl-nvim-config.py Remove-Item dl-nvim-config.py
Invoke-WebRequest https://vmsetup.pistonite.org/dl-nvim-config.py -OutFile dl-nvim-config.py python dl-nvim-config.py Remove-Item dl-nvim-config.py
- Start nvim. Follow the normal nvim setup from now on