作为标题,任何方便的方式?
我特别需要它为一些cvs / git commit或sendmail加载模板注释。我认为这是一个vi环境,不是vim。
在VIM命令提示符下:
原文链接:https://www.f2er.com/bash/390417.html: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.