Link to home
Start Free TrialLog in
Avatar of hirve
hirve

asked on

previoue file edit in vi editor

i am using vi editor sins 8 years. i am edit more than 5 file in vi
i want to edit previous file in vi ?
i am know how to edit next file
how can i edit previous file Please told me command?
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HamdyHassan
HamdyHassan

to start again from the first one
:rew
then use
:n  

to reach the correct file
It's rewind, I like it because I hate to wtite filename or remember file numbers
:n for next file
:N for previous file (upper case N)
Press and hold down <ctrl><shift>, then hit the <6> key.  If you keep hitting the <6> key, this toggle between the current file and the previous file.