Skip to content

[vi-mode] bug: incorrect b behavior #10393

Description

@johnpyp

Fish: version 3.7.1-1593-g5b324f8ec
OS: Arch Linux
Term: Kitty

Yes, this does happen without third-party customizations.


b is misbehaving, at least with regards to slashes (where I noticed it). Example:

content:

cd /usr/bin/zsh[CURSOR]
# in normal mode, press b
cd /usr/bin/[z]sh # (correct)
# press b again
cd /usr/[b]in/zsh # (incorrect)

Compare this to real vim or neovim;

cd /usr/bin/zsh[CURSOR]
# in normal mode, press b
cd /usr/bin/[z]sh # (correct)
# press b again
cd /usr/bin[/]zsh
# press b again
cd /usr/[b]in/zsh

More clearly, just enter vi mode, press b from the end of the line and compare to vim to see the difference.

Zsh vi mode seems to handle this case fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions