vimtricks.wiki Concise Vim tricks, one at a time.

How do you record a macro to clean log file lines by removing timestamps?

Answer

qa0d2Wjq

Explanation

Record a macro that goes to the start of the line, deletes the first two words (timestamp fields), then moves down. Strips timestamps from log output.

Next

How do you yank a single word into a named register?