If I have the text:
var x = "Hello my name is Jim and I like ice-cream"
It'd be pretty straight forward to use v+i+".
But if my text is:
var x = "Hello my name is "Jim" and I like ice-cream"
When I use v+i+" vim will only highlight Hello my name is. This is an expected behavior.
How would you go about selecting everything within the full sentence Hello my name is "Jim" and I like ice-cream?
You can still use
fandtto jump to a character inclusive or exclusive, respectively. In your use case, position the cursor on the first quote (if it isn't already, move it with e.g.T"or^f") and dov3t"to visually select everything in the outer quotes.If counting is not your thing, you can go incrementally with e.g.
vt"lt"lt"lt"or similar.See
:help tand:help f.Since visual mode does not edit anything in itself, there may be non-visual alternatives. If the goal is to change or delete the text in outer quotes, you can
:substituteit and take advantage of the greediness of*as in:If your goal is to paste the text in quotes somewhere else, I'd be tempted to yank and paste the whole line and remove the quotes and everything outside after pasting.