Is there a way to get vim keybindings in powershell as you would in bash or zsh with a command like

set -o vi
link|improve this question

50% accept rate
feedback

3 Answers

up vote 2 down vote accepted

PowerShell is a runtime environment that can be hosted in things other than the default windows console. This means that it's enirely possible to create a VI like container for PowerShell (as far as I know nobody has done this yet). However there are some other richer experiences out there:

Or help out the community and write your own:

http://msdn.microsoft.com/en-us/library/ms714661(VS.85).aspx

If I hear of a Vi style host I'll come back and update this answer.

link|improve this answer
feedback

I wouldn't swear that there isn't an undocumented feature of Powershell that allows this, but as far as I know the answer is no. At least I have never seen anything in Powershell documentation to suggest it's possible.

JR

link|improve this answer
feedback

As it happens, you can load PowerShell syntax-highlighting into VIM. It's what I use for script development.

http://www.vim.org/scripts/script.php?script_id=1327

While it isn't in the shell itself, it's handy for building longer scripts. I have one window in VIM, and have a PowerShell prompt in another. I find it very handy.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.