On Wed, Sep 23, 2009 at 1:53 PM, Peng Yu <[email protected]> wrote: > > Hi, > > I have a file, which is basically a table. Each row is a line in the > file. The columns are separated by tabs. I'm wondering if vim can help > view this kind of file with columns aligned and without wrapping > lines.
To disable wrapping, set 'nowrap'. Vim doesn't have any built-in features to show the columns aligned, but you can reformat the text (meaning, change the buffer) to align the columns (if you don't want to save, you may just undo). I use Dr. Chip's excellent align plugin, though I end up having to replace the <Tab>'s with a non-existing separator character (such as ":") and run ":Align :" to get all of them to align. There might be an easier way to do this, so check the docs. http://www.vim.org/scripts/script.php?script_id=294 -- HTH, Hari > > Regards, > Peng > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
