long file in vi

How do you view a long file in vi and search a string..
Sometimes vi says that File too long...
vrelhanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ahoffmannConnect With a Mentor Commented:
vi -R file

# how about RTFM - read the fine man-page ;-)
0
 
ahoffmannCommented:
view file
0
 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
 
ahoffmannCommented:
vi's buffer (if you mean that) is used to roll back changes, for example with the u command.
view does not use a buffer 'cause it's readonly ;-)
0
 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
 
vrelhanAuthor Commented:
view filename will solve the problem, but if I want to do it with vi only then, is it possible ? Is there any variable or parameter whose value can be increased and vi will allow us to see the long file even.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.