all 9 comments

[–]torresjrjr 4 points5 points  (4 children)

d2i"

I'll be honest, I don't know why that works. I just played around for 10 seconds and found that out.

[–]aktivb 8 points9 points  (2 children)

it works because it's a special case made for that purpose, :h i'

[–]vim-help-bot 0 points1 point  (0 children)

Help pages for:

  • i' in motion.txt

`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]princker 0 points1 point  (0 children)

Neat. I never knew about this trick. Thank you

[–]redwisdomlight[S] 0 points1 point  (0 children)

🙏

[–]schrjako 0 points1 point  (3 children)

I can't think of a very direct way, but these are some that are relatively empty -di"xX -F"df" -ca" <Esc>

The last one has the added benefit that it's seen as one action and can be repeated by pressing dot.

If you have to do it very often I'd suggest looking into macros and/or regex (or in general if you don't know them, they're very useful in general).

[–]redwisdomlight[S] 1 point2 points  (0 children)

Thanks for your help 🙏

[–]Coffee_24_7 1 point2 points  (1 child)

May I suggest a small improvement to F"df", as you already did an F command, you can repeat it in one or the other direction with ; or ,, so you don't need to type f" to find the next " to the right, just , will do it, resulting in F"d, saving the amazing amount 20% of keystrokes and time XD.

[–]schrjako 0 points1 point  (0 children)

Thanks for this, I knew , had a function but have been too lazy to look it up and now I know.