How to load another file's content to the current file in Vim? -
In the form of a title, in any convenient way?
I want to load a template comment specifically for some CVS / GIT commit or sendmail. I think it is the Vi environment, not Vim.
at the VIM command prompt:
: read new_file
Or for small:
: new_file
This will be the contents of the new_file
For example, if it is the cursor, it is the contents of new_file
:
I do not like green eggs and I do not like the ham I am am I
And this is what you are editing:
I meant what I said and I said that I mean yes <10011
and your cursor is on the first line and you type:
: read new_file
Then your buffer will be:
I meant what I said and I said that what I mean is that I do not like green eggs and ham. I do not like you. I am 100 percent faithful to the elephant. Pre>
Comments
Post a Comment