You want to have them nice aligned with 5 decimals written out. First, we align any line left to the beginning: :%s§^\s*§§ 123 2.5678 -13.44 100.5 +47.11 Now we split at the decimal-point (if any) and shift the fractional part wide to the right and add five '0' at the end (because we want 5 fractional digts). :%s§\([-+]\?\d\+\)\.\?\(\d*$\)§\1 !\200000§ 123 !00000 2 !567800000 -13 !4400000 100 !500000 +47 !1100000 This tricky substitue aligns the fractional part at column 15: :%s§\%15c\s*!§!§ 123 !00000 2 !567800000 -13 !4400000 100 !500000 +47 !1100000 Finally we add a '+'-sign where it's missing:
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|