Skip to content

suggestion: make the linewise version of the operator accept a count #2

@morefun2compute

Description

@morefun2compute

Hi,

I noticed that with the definition map + <Plug>(operator-foo), a user cannot do, for example, 5++. There is a simple work-around that the user can do for himself:

nmap <silent> <expr> ++  "+" . v:count1 . "+"

However, it might be nice to have that definition added automatically. For multi-key operators, you may want to define two versions automatically --- analogous to gqgq and gqq.

I had written my own version of "operator-replace" (before I knew about your plug-ins) that actually did a proper multiplication of the two counts, e.g., just like 2gq3gq is equivalent to 6gqgq. Going that far is probably not necessary or worthwhile, though. :)

Thanks so much for such an incredible plug-in!

Aaron

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