I'm using this command below to remove the first column of a document:
%s/^[^\t]*\zs\t[^\t]*\ze//g
but it says command not found.
Any idea?
|
I'm using this command below to remove the first column of a document:
but it says command not found. Any idea?
| ||||
|
feedback
|
|
You need to write it in command mode, not normal. In other words, press : first.
Edit: To remove the first column:
where | |||||||
feedback
|
|
I don't get an error from your command, but it removes the second column. This command will remove the first column:
| |||
|
feedback
|
|
You could also use Visual-Block mode. On the first line of the file, in the first column, hit Control+v to get in Visual Block mode, followed by Shift+g (moves to the last line of the file) then use l to move over to the right as far as you want. You should see a visual selection of each column as you move to the right in the file. xwill then delete those columns. See also: | |||
|
feedback
|
|
As I already answered on StackOverflow, you might use the following command:
| |||||
feedback
|
:at the start of the command. – Mikel Feb 4 '11 at 10:36