Align badly formatted text into a table by selecting the region, then pressing <A-a>. This case aligns the '='; you decide the centering string before pressing return.
+
Align badly formatted text into a table by selecting the region, then pressing <A-a>. This case aligns the '='; you decide the centering string before pressing return.
You need the perl script "align" from http://www.cs.albany.edu/~mosh/Perl/align.
You need the perl script "align" from http://www.cs.albany.edu/~mosh/Perl/align.
Line 19:
Line 19:
Mapping is:
Mapping is:
<pre>
<pre>
−
:vmap <A-a> !perl ~/perl/align -c:=
+
:vmap <A-a> !perl ~/perl/align -c:=
</pre>
</pre>
Line 37:
Line 37:
==Comments==
==Comments==
−
−
----
Latest revision as of 08:57, September 29, 2008
Please review this tip:
This tip was imported from vim.org and needs general review.
created September 30, 2003 · complexity basic · author mosh · version 6.0
Align badly formatted text into a table by selecting the region, then pressing <A-a>. This case aligns the '='; you decide the centering string before pressing return.