When I need to cut some lines from one file to another file, I always do the following steps:
- Select the lines in file-1
:w >> file-2
- Re-select the lines
d
This is super annoying if you need to do it for like 10 times.
So, is there anyway I can write the selection to another file and delete the selection in the same time?
Edit: maybe using gvd
to reselect and delete is a faster option.