Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

set -o vi
share|improve this question
add comment

3 Answers

up vote 3 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.

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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