2

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?

4

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, privacy policy and cookie policy

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