move a code block from the file you are editing to another file using vim.
is there any tricks to be more productive?
This question is close to the url below, but not exactly the same
How can I extract a predetermined range of lines from a text file on Unix?
# tasks
identity lines range in file_A where you are working
append the code block to file_B
remove the code block from file_A
my previous routine - 4 steps
# write down line range, exit vim
sed -n 1,33p file.pl >> lib/module.pm
vim lib/module.pm - to check
vim file.pl again to delete the code block