vim中保存其中部分内容到其它文件的方法

解决办法

]# vim file.txt
1
2
3
4
5
6
7
:2,5 w./test.txt #2-5行另存为test.txt

原文地址:https://www.cnblogs.com/wanwz/p/12804162.html