usage
Last updated
Was this helpful?
Last updated
Was this helpful?
[!TIP|label:references:]
l<N>
left-align (with N spaces padding)
r<N>
right-align (with N spaces padding)
c<N>
center-align (with N spaces padding)
including the <sep>
align to left
or
align to center
align without <sep>
i.e.: the second match (
=
)
align the first :
[!NOTE] only for default left-alignemnt. Not support customized right/middle alignment. i.e.:
/r1c1l0
align with 2nd matches
or with \v
(very magic)
reference:
for every N matches
or
[!NOTE|label:pre condition:]
align the first
:
and last matches,
as below:
first :
reference: via
/^[^;]*\zs:
/^[^;]*\zs:/r1c1l0
/^[^;]*/r1c1l0
/^[^:]*\zs:
/^[^:]*\zs/r1c1l0
/^[^:]*\zs:/r1c1l0
/^[^:]*/r1c1l0
/^[^:]*:/r1c1l0
:
last ,
tips:
actually the pattern not matches with the final
,
, but matches with)<.*> ,
sample code:
/)[^,]*\zs,
or even better align
:1,3Tabularize /,
or :'<,'>Tabularize /,
:Tabularize /)[^,]*\zs,
: /^\s*\S\+\zs/l0c1l0
: /^\(.\{-}\zs=\)\{2}/l1l0
[!NOTE]
refer to