Set up Vim as a Python IDE in Windows. Part 1

1 year ago
35

Install required programs

Powershell 7
Install black-icon Powershell from the Microsoft Store.

Vim
https://www.vim.org/

Git
https://git-scm.com/
git config --global user.email "your@email.com"
git config --global user.name "Your Name"
git config --global core.editor "gvim -f -i NONE"
git config --global merge.tool gvimdiff
git config --global diff.tool gvimdiff

Python
https://www.python.org/

Lua
https://luabinaries.sourceforge.net/download.html
lua-5.4.2_Win64_dllw6_lib.zip
put it somewhere and point Path environment variable to it

Rg
https://github.com/BurntSushi/ripgrep/releases
put it somewhere and point Path environment variable to it

Node
https://nodejs.org/en
install Chocolatey

CONFIG:

vim9script

source $VIMRUNTIME/defaults.vim

set shell=pwsh
set pythonthreehome=C:\Users\shaya\AppData\Local\Programs\Python\Python312
set pythonthreedll=C:\Users\shaya\AppData\Local\Programs\Python\Python312\python312.dll

if executable("rg")
set grepprg=rg\ --vimgrep\ --no-heading
else
echoerr "rg not found. Install ripgrep to use :grep"
endif

Loading comments...