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?
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.