Suppose I have some code,
struct NodeVector {
vector<bool_node*> *vec;
};
I want to replace two things, like this,
:'<,'>s/NodeVector/MyClass/g | s/bool_node/MyEltClass/g
but, it only runs the first search, and then says “pattern not found: bool_node“. How can I achieve this result? (plugin answers are okay).
struct MyClass {
vector<MyEltClass*> *vec;
};
The issue here is that both of the search & replace commands need a range. For example, these should work fine:
or