remove first N character in vim from selected line
/**
* Definition for an interval.
* struct Interval {
* int start;
* int end;
* Interval() : start(0), end(0) {}
* Interval(int s, int e) : start(s), end(e) {}
* };
*/
I have this format code and want to uncomment the struct in vim to something like this:
/**
* Definition for an interval.
*/
struct Interval {
int start;
int end;
Interval() : start(0), end(0) {}
Interval(int s, int e) : start(s), end(e) {}
};
right now I just use this :%s/\s*\s//gc to remove ' * ', but it will also affect the line ' * Definition for an interval.', not sure if vim have the way to select which line I want to replace. Or if there is another better way to move the * for comment.