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.
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:
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.