Hi, I have a file numbers in gropus of four that i want to separate
this way:

-
0,2010
0.149036564840167          ----------------> To File A
0.174286165702154          ----------------> To File B
0.148561021969625          ----------------> To File C
0.197299757855822          ----------------> To File D
-
0,2020
0.148538114790534          ----------------> To File A
0.174768764182483          ----------------> To File B
0.152110261402346          ----------------> To File C
0.204325268521311          ----------------> To File D
-
0,2030
0.14405206434384             ...
0.172445966573654
0.157687637653766
0.203154350077063
-
...

I'm just starting to learn how to use vim, but I'm sure this
repetitive task can be managed efficiently using vim.
The first thing that comes to mind is saving the file in the 4
destination files and then edit them.
To edit the first I could type 2 dd (for the two first lines), j (to
skip the first number), and 5 dd (to delete the next 5 lines). Then I
just keep on typing
j .
j .
j .
...
until the end of the file.
I would have to do the something similar (but chanching the number of
lines to delete at the beginning of the file) for the other 3 files.

But is there a way to select certain lines or something similar?
Any suggestion to do it faster will be appreciated.

Thank you.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to