当前位置:网站首页>write a number of lines to a new file in vim
write a number of lines to a new file in vim
2022-06-24 21:41:00 【ztenv】
1. simplest
:100,200 w filename
2. set a start mark named A first, set a end mark named B second, and then
`: 'A,'B w filename`
3. set vim in visual model, such as ctrl+v, and then select all lines that you want to write to a new file, and then press shit+:
:'<,'> w filename # ‘<,’> will be filled by vim auotmatically
4. other
:+0,+99 w filename
边栏推荐
- Basic knowledge of assembly language (2) -debug
- Day 04 - file IO
- Chinese and English instructions of Papain
- Some Modest Advice for Graduate Students - by Stephen C. Stearns, Ph.D.
- Expectation and variance
- 15. several methods of thread synchronization
- excel 汉字转拼音「建议收藏」
- MySQL multi condition matching fuzzy query
- IPC mechanism
- 字符串常用方法
猜你喜欢

第04天-文件IO

JVM指令

海河实验室创新联合体成立 GBASE成为首批创新联合体(信创)成员单位

Huawei laptop, which grew against the trend in Q1, is leading PC into the era of "smart office"

Bi skill - judge 0 and null
![搜索二维矩阵[二分巧用 + 记录不同于插入二分的解法]](/img/c9/afc03afd477bbfdd3c0dc54bacfd2d.png)
搜索二维矩阵[二分巧用 + 记录不同于插入二分的解法]

【LeetCode】11、盛最多水的容器

Bi SQL drop & alter

Assembly language (3) 16 bit assembly basic framework and addition and subtraction loop

PMP考试“临门一脚”如何踢得漂亮?
随机推荐
【LeetCode】11、盛最多水的容器
屡获大奖的界面控件开发包DevExpress v22.1官宣发布
弹性蛋白酶中英文说明书
Excel Chinese character to pinyin "suggestions collection"
C语言边界计算和不对称边界
Program.launch(xxx)打开文件
2种常见的设备稼动率OEE监测方法
Bi SQL drop & alter
Pbcms adding cyclic digital labels
字符串常用方法
Multi modal data can also be Mae? Berkeley & Google proposed m3ae to conduct Mae on image and text data! The optimal masking rate can reach 75%, significantly higher than 15% of Bert
新一代可级联的以太网远程I/O数据采集模块
论文翻译 | RandLA-Net: Efficient Semantic Segmentation of Large-Scale Point Clouds
‘distutils‘ has no attribute ‘version
胰蛋白酶中英文说明书
Baidu voice synthesizes voice files and displays them on the website
Chinese and English instructions of Papain
Linux64Bit下安装MySQL5.6-不能修改root密码
leetcode:2104. Subarray range and
Bi-sql Union