Search notes:
Vim: aligning text on commas
Visually select the text to be aligned.
Press
:
to go into command mode.
Press
!
to indicate that the selected text needs to be filtered through an external program.
Use
sed
's/,/,@/g' |
column
-s@ -t
as the external programm.
sed
first replaces all
,
with
@,
.
column
then aligns on
@
(specified with
-s
).
Index