Stahlman Family wrote:


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
I'd like to give you a 2nd choice.

1. set nowrap ts=100
2. use ctrl-v and motion to select the column, press x
3. set wrap ts=8

(or skip the wrap stuff if you already use nowrap, and instead of ts=100 use whatever you need)

Regards,
Chip Campbell

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