Cesar Romani wrote:
> I'd like to align the following:
>
> a := baaa
> caaaa := deeee
> ee := f
>
> Suppose I do an error and do:
> AlignCtrl w=:=
> and thereafter :%Align :=
>
> it wouldn't align like expected and If I try to correct it by doing:
> AlignCtrl w= :=
> and thereafter :%Align :=
> it doesn't align anyway!
>
AlignCtrl provides settings for subsequent Align calls. You can have
AlignCtrl revert to its default state with:
:call Align#AlignCtrl("default")
You can see what your current settings are with:
:AlignCtrl
In the case that you've given above, the aforementioned command shows:
AlignCtrl<=> qty=0 AlignStyle<:> Padding<1|1> LeadingWS=w AlignSep=<
AlignCtrl<=< all separators are equivalent and simultaneously active
qty=0 no patterns entered as yet
AlignStyle<:> no fields are accepted to be aligned (therein lies your
problem)
Padding<1|1> separators will be leftside padded with one space, and
rightside padded with one space
LeadingWS=w ignores all selected line's initial whitespace
AlignSep=< separators will be left-justified
Perhaps
:AlignCtrl l
will help.
Regards,
Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---