Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: emulate bash key bindings



On 08.01.2020 13:00, Peter Stephenson wrote:
# Create widget backward-kill-space-word, using the generic
# backward-kill-word widget function.
zle -N backward-kill-space-word backward-kill-word-match
# Tell it to use "space" style for words.
zstyle ':zle:backward-kill-space-word:*' word-style space

Is the asterisk here '...:*' needed for something?


# Bind it.
bindkey '^W' backward-kill-space-word



Messages sorted by: Reverse Date, Date, Thread, Author