To copy a range of lines from a file to another:
1. Open the file in VIM
$ vim fich
2. Execute the following command within the editor (press Esc while in insert mode)
:num-sup-line,num-inf-linew! file-name
Example:
:10,50w! file-name
Further reading
– help write
![YouTube video](https://i.ytimg.com/vi/7l6C_BVsrvk/hqdefault.jpg)
![YouTube video](https://i.ytimg.com/vi/HloAT5LpJ2A/hqdefault.jpg)
![YouTube video](https://i.ytimg.com/vi/UnXnc7dutWA/hqdefault.jpg)