6
I have a frequent need to manually manipulate tab-delimited text for data entry and other purposes. When I do this, it helps if the text is aligned properly into columns. For example (assuming 4-space tabs):
# original format
abcdefghijklmnop field2
abcdefgh field2
abcdefghijkl field2
# ideal format
abcdefghijklmnop field2
abcdefgh field2
abcdefghijkl field2
I am very familiar with using the column
utility to columnize text this way, but the problem is that it uses spaces to align the columns, and I specifically need tabs. This requirement also appears to rule out the Tabularize plug-in.
Is there any way that I can columnize text with tabs specifically, either within vim
or at the shell? It looks like I might be able to do it with groff
/tbl
, but honestly I'd rather columnize it by hand than mess with that....
If you want to change colors, the fg colors are hardcoded in macvim.
https://github.com/b4winckler/macvim/blob/master/src/syntax.c#L7580-L7587
some sort of documented example of the syntax to use would help, since none exist on on the github page for that plugin. – Ryan Tuck – 2018-03-30T20:25:17.090
This actually sounds really promising. I will take a look and get back to you. Thanks! – kine – 2013-10-30T17:11:24.917
I haven't actually tried this yet, but i'm going to mark it as the accepted answer based on the documentation of the plug-in, and the fact that the only other useful answer was written by you anyway. Cheers. – kine – 2013-11-03T16:34:47.337