【vim】复制一个文件中的数据到另一个文件中(使用缓冲区)
来源:互联网 发布:access2007制作数据库 编辑:程序博客网 时间:2024/05/30 19:34
(方法一)从文件a中复制4行数据到文件b中
vi a
"f4yy:w
:e b
"fp
(方法二)
Another way to move text from one file to another is to use the ex commands :ya (yank)
and :pu (put). These commands work the same way as the equivalent vi commands
y and p, but they are used with ex’s line-addressing capability and named buffers.
For example:
:160,224ya a
would yank (copy) lines 160 through 224 into buffer a. Next you would move
with :e to the file where you want to put these lines. Place the cursor on the line where
you want to put the yanked lines. Then type:
:pu a
to put the contents of buffer a after the current line.
- 【vim】复制一个文件中的数据到另一个文件中(使用缓冲区)
- 系统调用,将一个文件复=中的内容复制到另一个文件中去
- C#将文件中的图片复制到另一个文件中
- 复制文件中的内容到另一个文件
- 黑马程序员高级视频学习笔记 将一个系统盘中的文件复制到另一个系统盘中
- Java 把一个文件夹中的所有文件复制到另一个文件夹中
- 复制一个文件夹中所有文件到另一个文件夹
- 键盘录入两个文件路径,将其中一个文件夹中的所有的文件复制到另一个文件中
- VBA 从一个Excel文件复制一行数据到另一个Excel文件
- 安卓将一个文件夹中的文件移动到另一个文件夹中
- axure怎么把一个文件中的部分页面复制到另一个文件
- java IO编程——复制一个文件中的内容到另一个文件
- vim中如何将一个文件的内容拷贝到另一个文件中
- vim中如何将一个文件的内容拷贝到另一个文件中
- java 从一个文件中读取内容 复制到 另一个文件中
- dos下将多个文件中的内容复制到一个文件中
- 复制两个文件中的内容到一个文件中
- 把一个文件复制到另一个文件下
- 两数交换
- linux进程状态D的一种产生原因
- smtp命令
- jQuery Mobile 1.3.0正式版发布了!
- pat 1020 Tree Traversals
- 【vim】复制一个文件中的数据到另一个文件中(使用缓冲区)
- hdu 1853 Cyclic Tour【KM】
- Objective-C 学习笔记
- 使用jaxb-xjc的xjc和schemagen
- php随机生成国内ip地址
- 3DS文件在OpenGL的读入和显示
- 小桥加加的英语学习博客
- [笔记]20070820英语学习笔记
- [笔记]20070821英语学习笔记