Adrian Johnson wrote:
%s/^[^\t]*\zs\t[^\t]*\ze//g

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

It removes the 2nd column for me. You must have a leading Tab, which results in an empty 1st column. In that case, you could use the following:
%s/^\s*[^\t]*\zs\t[^\t]*\ze//g

Brett Stahlman

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