I have a file I'm working on, where I need to make a lot of changes. The text before what I need to change is permanent, but what I need to change is changing. What I'm doing now is
/my_constant_text, and nto go to the row that I need to edit. But using n, like this, I still have to move the cursor forward compared to my matched text in order to get to where I want to start editing. It seems to me that there should be a way only on my cursor to just go through my agreed text, but I was not lucky to find it.
If this helps the file I'm working on, it looks like the next two lines are repeated many times 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 be able to move my cursor right after 'foo','(i.e. my_constant_text).
source
share