With Vim 7.2, when a perl block is aligned using =
,
Multi line comments are moved as per the blocks inner alignment. But they should be placed at immediate start of the line.
Is there any way to solve this.
Executing
:%s/^\s\+=/=/g
every time is time consuming.
Example file:
if($i==0)
{
$i=$i+3;
=head
This part can be optimised
=cut
print $i;
}
After aligning (with =a{ or 9==)
if($i==0)
{
$i=$i+3;
=head
This part can be optimised
=cut
print $i;
}
Expected alignment;
if($i==0)
{
$i=$i+3;
=head
This part can be optimised
=cut
print $i;
}
set equalprg?
say in a buffer with a Perl file? – Alexander Batischev Apr 28 '16 at 7:49