I want to insert data from another file , especially particular lines[10-23] from the file. I tried the following

:r filename 10-23 

But It returns the following error

E172: Only one file name allowed

How to resolve this?

1 Answer 1


You can use sed for that:

:r! sed -n 10,23p filename

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.