I recently moved from Zsh to Fish, and I'm having a problem with vi-mode in Fish. There doesn't seem to be a "repeat" keybinding, like in Zsh's vi-mode (bound to the "dot" .
). I think this is one of the most useful commands in vi-mode since it can prevent you from repeating commands.
Is there a way to add this command to vi-mode in the Fish shell. Any idea how am I supposed to do this? Thanks.
vi-repeat-change
keybinding, which is bound to.
by default? Could you provide some examples of how you used it? Be as specific as possible - Provide an example command-line, the change you made (with keystrokes) and then how you used.
to repeat that change? We might be able to come up with some alternatives for that workflow in Fish. Thanks!.
command, and that's thevi-repeat-change
binding in Zsh. Been using it for (literally) decades in vi itself. But I'm struggling to think when I'd use it on the command-line in a shell.dd
doesn't seem to apply, since there's only one line in the shell (so what would you be repeating?). And I've never had the need to edit a command-line where I've done adw
and then needed to repeat the operation in a separate location. And that would just be a one-character savings in typing anyway.vim
with Alt+e or Alt+V, assuming thatVISUAL=vim
.dtd
where I'm trying to clear some segment of a previous line. There is nodtd..
and nod3td
, no search with/
, so the easiest way is oftendtddtddtd