Skip to content

using ",$s/" instead of "%s/" at be beginning in selection w. SearchReplaceSingleBufferOYou appear well, with no apparent distressSearchReplaceSingleBufferOpen #3

Description

@emilBeBri

Hi, I really like the rw action. However, it starts with '%s' in the search term, while most times, I’m interested in ',$s/', that is from the current line and down. for example, I often use objects with arbitrary names in data wrangling:

mock code:

ff1 = (some operation)

(more code, some times with blank lines in between)

ff2 = ff1+ (some operation)

so then I might neeed to reuse the above. what I would is I would yank it, put it below the original code. Then, I want to replace all 'ff' with 'fj', for example, before starting to modify the code itself, to some other purpose. using the rw is much more convinient than opening search-replace itself, but it starts from the top of the file, while I actually just want it from the current line and down (I'll pres 'yes' to all changes down to the last ff and then press 'l' when I get to there.

Does it make sense? basically it's just starting with , instead of % in the search-replace expression.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions