For the below data:
-150000 2023-03-30
421.67 2023-04-20
575 2023-05-20
I can substitute the whole line with the first string
:%s/\v.{-1,}\s+(.+)/\1
Then the content was changed into:
-150000
421.67
575
I can copy the lines into register +
with:
:%y+
With my method the primitive data was
-150000 2023-03-30
421.67 2023-04-20
575 2023-05-20
converted into
-150000
421.67
575
,then copy it and create a recovery with undo
.
How can copy the matched string into register +
without changing the previous lines ?
+
buffer? All the dates? All the lines with more than one words? The first words of line with more than one word?