Skip to content

What's the equivalent -Function to diw in vi mode #4322

Closed Answered by sharpchen
sharpchen asked this question in Q&A

You must be logged in to vote
Set-PSReadLineKeyHandler -Chord ' , ' -ViMode Command -ScriptBlock {
    [Microsoft.PowerShell.PSConsoleReadLine]::ForwardChar()
    [Microsoft.PowerShell.PSConsoleReadLine]::BackwardWord()
    [Microsoft.PowerShell.PSConsoleReadLine]::DeleteWord()
}

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by sharpchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant