%s/^[^\t]*\zs\t[^\t]*\ze//g

that removed the first column! How can I remove 2nd column.
thanks
Adrian


On Mon, Mar 15, 2010 at 12:14 PM, Stahlman Family
<[email protected]> wrote:
>
>
> Adrian Johnson wrote:
>>
>> Hi:
>>
>> While using Excel for removing 2nd column, it saves all weird
>> characters in other columns. It is driving me crazy.
>>
>> How do I remove/delete column 2 in a tab delim file using vim.
>
> How about this:
> %s/^[^\t]*\zs\t[^\t]*\ze//g
>
> Brett Stahlman
>
>>
>> thank you.
>>
>> Adrian
>>
>
> --
> 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
>

-- 
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

Reply via email to