Visitar URL original
vi command mode: Missing repetition for `s` command · Issue #13002 · fish-shell/fish-shell · GitHub
Skip to content

vi command mode: Missing repetition for s command #13002

Open

Description

@the-isz

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions