例如,要转换这个
$example = array(
'First' => 'This,
'Second' => 'is',
'Third' => 'an',
'Fourth'=> 'example',
'Fifth' => '.',
);
进入这个
$example = array(
'First' => 'This',
'Second' => 'is',
'Third' => 'an',
'Fourth' => 'example',
'Fifth' => '.',
);
不必缩进每个=> 'whatever',
每一次。
这可以在vi http://en.wikipedia.org/wiki/Vi?
有两个 Vim 插件可以实现这一点,Align http://www.vim.org/scripts/script.php?script_id=294 and Tabular https://github.com/godlygeek/tabular。使用“对齐”,选择行并执行
:'<,'>Align =>
Tabular 是古老的 Align 的最新替代方案,但两者都提供类似的功能。根据您的喜好选择。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)