例如,爲了這個如何在vi中從中間開始縮進多行?
$example = array(
'First' => 'This,
'Second' => 'is',
'Third' => 'an',
'Fourth'=> 'example',
'Fifth' => '.',
);
轉換成此
$example = array(
'First' => 'This',
'Second' => 'is',
'Third' => 'an',
'Fourth' => 'example',
'Fifth' => '.',
);
而不必每次縮進每個=> 'whatever',
。
這可能嗎vi?
在這種特殊情況下':S/=>/\ t \ 0/g'(任選地接着': retab')可能就夠了 – sehe
謝謝,這個工作很完美,而且我認爲比其他解決方案更可取,因爲它不需要插件 – federicot