Say I have this line of code:
$query = \"SELECT * FROM table\";
Is there a command in vi/vim which can instantly delete everything between
You can select between quotes and then delete (d), change (c) etc. using
vi"
Similarly, you can substitute braces, brackets, XML elements etc. thus:
vi(
vi{
vit
or to simply change/delete, do the corresponding di", ci" etc. Substituting a for i will encompassing the surrounding elements (so you mark or change the brackets and contents, for example)