在VIM命令提示符下:
:read new_file
或简称:
:r new_file
这将插入new_file的内容在光标所在的地方。例如,如果这是new_file的内容:
I do not like green eggs and ham I do not like you sam I am
这是您正在编辑的文字:
I meant what I said and I said what I meant An elephant's faithful one hundred percent.
您的光标在第一行,并且您键入:
:read new_file
然后你的缓冲区将是:
I meant what I said and I said what I meant I do not like green eggs and ham I do not like you sam I am An elephant's faithful one hundred percent.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。