RE: Substitute tabs for specific column locations

2007-01-29 Thread David Fishburn
-Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 11:08 PM To: David Fishburn Cc: vim@vim.org Subject: Re: Substitute tabs for specific column locations So for each row, replace the tab with an appropriate number of spaces

Substitute tabs for specific column locations

2007-01-21 Thread David Fishburn
Vim 7 WinXP SP2 I have a string in this format: \nr1c1\tr1c2\tr1c3\t\nr2c1\tr2c2\tr2c3\t\nr3c1\tr3c2\tr3c3\t\n r1 = row 1 c1 = column 1 I also have this information and requirement: c1 should display at column 1 c2 should display at column 20 c3 should display at column 25 So for each row,

Re: Substitute tabs for specific column locations

2007-01-21 Thread Tim Chase
So for each row, replace the tab with an appropriate number of spaces to ensure that column 2 (no matter the length of column 1) will always start in column 20. The same for column 3, but starting at column 25. This is my poor man's formatting utility. I can change the input in anyway I want