Write lines to file — :start_line_no,end_line_no w filename
Delete till the end of line — D
Delete till the beginning of line — d0
Paste at the end of line — $p
Show all files open -:ls
Go to middle of line — gm
Write lines to file — :start_line_no,end_line_no w filename
Delete till the end of line — D
Delete till the beginning of line — d0
Paste at the end of line — $p
Show all files open -:ls
Go to middle of line — gm