What's the most efficient way to repeatedly remove leading text using Vim?
Posted
by John Topley
on Stack Overflow
See other posts from Stack Overflow
or by John Topley
Published on 2010-04-07T13:53:39Z
Indexed on
2010/04/07
14:03 UTC
Read the original article
Hit count: 157
What's the most efficient way to remove the text 2010-04-07 14:25:50,773 DEBUG This is a debug log statement - from a log file like the extract below using Vim?
2010-04-07 14:25:50,772 DEBUG This is a debug log statement - 9,8 2010-04-07 14:25:50,772 DEBUG This is a debug log statement - 1,11 2010-04-07 14:25:50,772 DEBUG This is a debug log statement - 5,2 2010-04-07 14:25:50,772 DEBUG This is a debug log statement - 8,4
This is what the result should look like:
9,8 1,11 5,2 8,4
Note that on this occasion I'm using gVim on Windows, so please don't suggest any UNIX programs which may be better suited to the task—I have to do it using Vim.
© Stack Overflow or respective owner