当前位置:网站首页>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
边栏推荐
- 创新药二级市场审饼疲劳:三期临床成功、产品获批也不管用了
- Abnova BSG monoclonal antibody description in Chinese and English
- 中金证券靠谱吗?开证券账户安全吗?
- 梦想CAD云图与GIS结合演示
- Google browser console F12 how to set the Chinese / English switching method, we must see the last!!!
- AssertionError: CUDA unavailable, invalid device 0 requested
- Assembly language (3) 16 bit assembly basic framework and addition and subtraction loop
- Bi-sql create
- 天书夜读笔记——深入虚函数virtual
- poj3669 Meteor Shower(bfs预处理)
猜你喜欢

The innovation consortium of Haihe laboratory established gbase and became one of the first member units of the innovation Consortium (Xinchuang)

动手学数据分析 数据建模和模型评估

js数组对象转对象

Ideas and examples of divide and conquer

论文翻译 | RandLA-Net: Efficient Semantic Segmentation of Large-Scale Point Clouds

Bi-sql select into

Baidu voice synthesizes voice files and displays them on the website

Day 04 - file IO

Bi-sql index

How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site
随机推荐
AssertionError: CUDA unavailable, invalid device 0 requested
2种常见的设备稼动率OEE监测方法
String common methods
Tencent cloud wecity solution
1. 封装自己的脚手架 2.创建代码模块
Listen to the markdown file and hot update next JS page
Combined with practice, you will understand redis persistence
WinXP内核驱动调试
Merge sort template & understanding
Preg in PHP_ How to replace variable data
Basic knowledge of assembly language (2) -debug
第04天-文件IO
字符串常用方法
【LeetCode】11、盛最多水的容器
百度语音合成语音文件并在网站中展示
谷歌浏览器控制台 f12怎么设置成中文/英文 切换方法,一定要看到最后!!!
高考之后,必然会出现以下四种情况:
Deoxyribonuclease I instructions in Chinese and English
MySQL gets the primary key and table structure of the table
Basic use of transformers Library