Is there a way to get vim keybindings in powershell as you would in bash or zsh with a command like
set -o vi
powershellvimwindows
Is there a way to get vim keybindings in powershell as you would in bash or zsh with a command like
set -o vi
Best Answer
These days you have a couple of options. With the default console you can just run Vim on Windows (you might already have it if you have git or other tools installed). To make the integration more seamless place this in your PowerShell profile:
I'd also recommend adding the following to your
vimrc
file so it executes shell commands with PowerShell itself.Otherwise the only ISE that supports a Vi mode right now is PSReadLine now available on the PS Gallery
There are usage notes but in brief for VI mode you need to add the following line to your ISE profile.
Note that Vi support was added in 1.2 but 1.1 shipped with Windows 10. You will need to use the -force parameter to update shipping (aka manually installed) version.