question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I enable vi mode?

See original GitHub issue

I’ve tried setting it this way which errors out:

PS C:\users\me\Downloads> Set-PSReadlineOption -EditMode Vi
Set-PSReadlineOption : Cannot bind parameter 'EditMode'. Cannot convert value "Vi" to type
"PSConsoleUtilities.EditMode". Error: "Unable to match the identifier name Vi to a valid enumerator name.  Specify one
of the following enumerator names and try again: Windows, Emacs"
At line:1 char:32
+ Set-PSReadlineOption -EditMode Vi
+                                ~~
+ CategoryInfo          : InvalidArgument: (:) [Set-PSReadlineOption], ParameterBindingException
+ FullyQualifiedErrorId :     CannotConvertArgumentNoMessage,PSConsoleUtilities.SetPSReadlineOption

I’ve tried installing both via Github as well as via PSGet and get the same result both ways. Am I missing a step somewhere?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
idvorkincommented, Oct 1, 2017

Thank you @srdubya - Much obliged!!

On Sun, Oct 1, 2017 at 8:13 AM, Jason Shirk notifications@github.com wrote:

You can thank @srdubya https://github.com/srdubya for vi mode. I’d have gotten around to it eventually, but he deserves all the credit for that feature.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lzybkr/PSReadLine/issues/330#issuecomment-333383433, or mute the thread https://github.com/notifications/unsubscribe-auth/AARJlbE2Ng4zStVHGiZ5RUYC5PNS8N88ks5sn6wxgaJpZM4G_75g .

1reaction
lzybkrcommented, Sep 25, 2017

@idvorkin - vi mode is in version 1.2 - included in Win10 or just follow the instructions for installing the latest version

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to setup Vi Editing Mode for zsh
After vi mode is enabled, you enter the "insert" mode by default. To enter "normal" mode, use Esc . And i or a...
Read more >
How To Use Vim Mode On The Command Line In Bash
Move down in Bash command history. Add this line to the bottom of your .bashrc file. set -o vi.
Read more >
Vi mode in Bash - Arabesque - Tom Ryder
For one thing, vi mode in Bash trips on the vi anti-pattern of putting you in insert mode by default, and at the...
Read more >
An introduction to the vi editor | Enable Sysadmin
To enter Insert mode, press i . In Insert mode, you can enter text, use the Enter key to go to a new...
Read more >
Chapter 9. The VI Input Mode
To enable the VI Input Mode for all new views, go to Settings → Configure KatePart...+Editing → VI Input Mode. On this tab...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found