要删除第4列和第5列:
:%s/^\(.\{-}\t\)\{3}\zs.\{-}\t.\{-}\t//
Run Code Online (Sandbox Code Playgroud)
说明:
^ => start of line
.\{?} => as few characters as possible
\( .\{-}\t \)\{3} => three times as few characters as possible followed with a tab
\zs => start of match
Run Code Online (Sandbox Code Playgroud)
\v交换机可以更清楚:
:%s/\v^(.{-}\t){3}\zs.{-}\t.{-}\t//
Run Code Online (Sandbox Code Playgroud)