vimdiff -O file1.php file2.phpOpen two files in Vim in vertical spilt screen mode (-O) with scrollbinding and diff highlighting on.
Let's use the following code as an example...
if ($is_true) {
$value['mes|sage'] = 'Excellent spare ribs, Martha!';
$value['type'] = 'compliment';
}Press v to enter visual mode, and then follow that with one of the following
i{i'In Vim, given code such as
if ($check) {
echo $array['true'];
}If you're on or within the parentheses and enter
ci(Same goes for
ci[And
ci{