I am using Windows 11 with Debian on WSL.
When I am in a Windows terminal session, I often do wsl vi (filename) to quickly edit a file. This opens vim.tiny (as I don’t have full vim installed and don’t want to spend 50 MB on an editor) in “vi compatible” mode, i.e. as if :set cp had been run.
I have tried aliasing vi to vim.tiny in my profile/bashrc files; I have tried making /usr/bin/vi a symlink to /usr/bin/vim.tiny; I have tried sudo update-alternatives --config vi. The first option works when running vi from a WSL terminal session (bash). However, none of them have any effect when running it as wsl vi directly from cmd.exe in Windows.
How do I solve this? This is pretty annoying 🙂