Skip to content

repeat last command doesn't work with replace char command #53

@JohnCoconut

Description

@JohnCoconut

In vim, r is used to replace a single char with another, . is used to repeat last command. However, this two does not work together here.

For example, I have

#abc
#abc
#abc

If I use r to replace first # with ., it changes to

.abc
#abc
#abc

However, when I move to second line, use . command to repeat last command, I get

.abc
..abc
#abc

What I expect is

.abc
.abc
#abc

If I use . to repeat command in the third line, I get

.abc
..abc
....abc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions