当前位置:网站首页>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
边栏推荐
- (CVPR 2020) Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
- PMP考试“临门一脚”如何踢得漂亮?
- Expectation and variance
- String common methods
- 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
- 归并排序模板 & 理解
- ‘distutils‘ has no attribute ‘version
- (CVPR 2020) Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
- Abnova丨5-甲基胞嘧啶多克隆抗体中英文说明
- Cloud development technology summit · public welfare programming challenge [hot registration]!
猜你喜欢

Bi SQL alias

Fan benefits, JVM manual (including PDF)

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

PMP考试“临门一脚”如何踢得漂亮?

数组中关于sizeof()和strlen

"One good programmer is worth five ordinary programmers!"

天书夜读笔记——深入虚函数virtual

Abnova丨5-甲基胞嘧啶多克隆抗体中英文说明

AutoCAD - two extension modes

Ps5 connected to oppo K9 TV does not support 2160p/4k
随机推荐
字符串常用方法
Reading notes at night -- deep into virtual function
mpls 笔记 part 1
Bi-sql select into
Tianshu night reading notes -- memory paging mechanism
Chinese and English instructions of Papain
Transformers 库的基本使用
SQL aggregate function handling null [easy to understand]
Assembly language (4) function transfer parameters
Texture enhancement
Abnova 5-methylcytosine polyclonal antibody
Bi SQL alias
Abnova丨5-甲基胞嘧啶多克隆抗体中英文说明
js数组对象转对象
Poj3669 meteor shower (BFS pretreatment)
After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems
[leetcode] 11. Container with the most water
Why does Dell always refuse to push the ultra-thin commercial notebook to the extreme?
O (log (min (m, n))
Chinese and English instructions of trypsin