Closed LaserMoai closed 5 years ago
I'm unable to reproduce this issue.
Could you install the new 1.63 version and try again?
With 1.63 version you can type the following command to check if the indent script was indeed loaded:
:echo GetPhpIndentVersion()
this should print 1.63
I was able to reproduce a similar problem but you should check issue #47 as this is related. I'll fix it when I'll have some time but you really should be using heredoc notation instead of multi-line strings...
I'm just following examples from "PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide."
Can confirm.
Given the following file:
<?php
class Foo
public function bar() {
$foo = "
";
}
}
Pressing Enter in insert mode after the ; on the ";
line puts the insertion point TWO sw to the left of where it should be. I would expect it to be aligned with the $
in the $foo
line.
Oddly enough:
";
then pressing ==
indents the line correctly.cc
on an empty line after the ";
results in the insertion point being set correctly.A related issue:
Given the following file:
<?php
class Foo
public function bar() {
$foo = "
";
$baz = "bar";
}
}
=ap
in command mode when the cursor is on any point in the class NOT indent the $baz
line correctly.==
on the $baz
line indents it correctly.Expected indenting in this case would be to align the $
of the $baz
line to the $
in the $foo
line.
The last line there doesn't get indented properly.
Version 1.62