Trying to remove the first column of a document
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?
You need to write it in command mode, not normal. In other words, press : first.
:%s/^[^\t]*\zs\t[^\t]*\ze//g
Edit: To remove the first column:
:%s/^\S*\s\+//
where \s
is "whitespace" and \S
is its inverse.
I don't get an error from your command, but it removes the second column. This command will remove the first column:
:%s/^[^\t]*\t\ze[^\t]*//g