If I am in the middle of the buffer and want to append external file data to the current buffer.
So far I move to end of the file with
G and reading the data
:r file so it is doing the work ......
Is there any standard style of
Are you looking for
:$r file? -- which will move the cursor. Don't forget to play with marks I often use
mx to mark and
'x to come back.
You can also use:
:call append('$', readfile('file')) -- which won't move the cursor. This is what we prefer to use when writing scripts nowadays.