#13002·fish-shell

vi command mode: Missing repetition for `s` command

Author: the-iszCreated Sep 15, 2026Updated Sep 15, 2026

Hi fish team,

first off: Thank you for your great project! I'm migrating all my Linux machines to use fish as the default shell because it feels so much better than e.g. zsh for interactive use.

I noticed that the s command in vi command mode does not support repetition, which sometimes bytes me.

To reproduce:

fish -N
fish_vi_key_bindings
herro<ESC>hh2s

Expected result: "rr" gets removed, then insert mode is entered Observed result: Only one "r" gets removed, then insert mode is entered

This is inconsistent with both vi and the behavior of fish's x command (2x removes two characters).

I also noticed that neither s nor x is documented here: https://fishshell.com/docs/current/interactive.html#vi-mode-command

$ fish --version
fish, version 4.8.1
$ uname
Linux

I'm using alacritty as my terminal.

Thanks and best regards!