Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Most probably, you or one of the oh-my-zsh modules you've enabled remaps the word cutting widgets to some that don't preserve that property. What is ^W bound to? What's the output of bindkey '^W'? And zle -lLa thewidget for the widget mentioned in the output of bindkey, and which thefunction for the function that widget uses if any. Commented Feb 26, 2018 at 11:32
  • backward-delete-word is the default widget (see zsh -f for the default behaviour). But the question is, has the widget been redefined. Does zle -lLa backward-kill-word return something? If yes, can you run which on the last word in the line it reports. Please add the information to your question by clicking on the edit link Commented Feb 26, 2018 at 12:35