>> >> I use Chip Campbell's Align plulgin: >> >> http://vim.sourceforge.net/scripts/script.php?script_id=1195 >> >> Install the plugin, open your LaTeX file, visually-select the lines >> of your table (V), and type \tt. >> > > Thanks, Gary! > > In addition, there's also AutoAlign which works with Align.vim... > > AutoAlign typically allows one to auto-align on =s as one types. > > a=1 > bbb=2 > z=4 > > becomes, as one types: (the following looks correct in monospaced fonts) > > a = 1 > bbb = 2 > z = 4 > > It also provides AutoAlign-ing for a number of other things, such as Latex > tables (it triggers auto-align'ing on pairs of backslashes). > > You can get AutoAlign from: > > http://vim.sourceforge.net/scripts/script.php?script_id=884 > -or- > http://mysite.verizon.net/astronaut/vim/index.html#AUTOALIGN (most > up-to-date) > > To install it: > > vim autoalign.vba.gz > :so % > :q > > (presuming that you have gunzip so that the vimball can be decompressed; if > you're on Windows, > see :help vimball-windows for how to get a gunzip tool) > > Regards, > Chip Campbell >
Thanks Dr. Chip, your plugin does format the latex tables very well. The reason I asked the question initially is that I have previously selected the text in a file with ggvG and then used the Q key (I think is mapped to gq) and if I do this the tables look really bad, and I was wondering if any tool with do a better job of formatting the text including the latex tables. Thanks again, Jorge -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
