align doesn't work

0 views
Skip to first unread message

Cesar Romani

unread,
Nov 19, 2008, 12:34:54 PM11/19/08
to vim...@googlegroups.com
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!

Regards,
Cesar


Charles Campbell

unread,
Nov 19, 2008, 1:16:42 PM11/19/08
to vim...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages