I’ve got a file I am working on where I need to make a lot of edits. The text just prior to what I need to edit is constant, but what I need to edit varies. What I’m doing right now is
/my_constant_text and n to jump to the lines I need to edit. But using n like this I still have to move the cursor forward past my matched text to get to where I want to start editing. It seems to me there has to be a way to just my cursor to just past my matched text but I’m having no luck finding it.
If it helps the file I’m working on looks like the following two lines repeated numerous times just with different values.
INSERT INTO TABLE (ID, NAME, VALUE) VALUES ('1','foo','all sorts of random stuff')
INSERT INTO TABLE (ID, NAME, VALUE) VALUES ('2','bar','some other random stuff')
I want to to be able to jump my cursor to right after 'foo',' (ie my_constant_text).
Use
/constant_text/eto jump to the end of the constant text, or/constant_text/e+1to jump just after it.