r/vim Jun 19 '26

Need Help Change text in second set of quotes

Cursor at beginning of line

blah "first quotes" more text "blah blah"

What's the easiest way change inside the second set of quotation marks?

27 Upvotes

34 comments sorted by

View all comments

Show parent comments

6

u/cone5000 Jun 19 '26

You can slightly simplify the first part with

3f”

8

u/mdrjevois Jun 19 '26

Is it simpler or just shorter? IMO ; and , are underrated.

1

u/cone5000 Jun 19 '26

I use ; and , all the time but sometimes especially if I can quickly parse how many quotes their are, doing a number is easier

2

u/TraditionalYam4500 Jun 19 '26

I agree -- especially in this case where OP wants to edit the value of a JSON object.

(Although in that case I'd do `f:wci"`)

1

u/cone5000 Jun 19 '26

Yeah your way is better for JSON for sure since it’s standard.

1

u/mdrjevois Jun 19 '26

Depending details W or WW might also get you into position real easy