Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just found out I can use less with multiple files. less status line tells me (END) - Next: file2.txt

But how do I navigate previous/next from less?

share|improve this question

migrated from stackoverflow.com Oct 18 '11 at 8:23

4 Answers

up vote 28 down vote accepted

This question is better suited for superuser.com. Anyway, we read in the manpage:

       :n     Examine  the next file (from the list of files given in the com‐
              mand line).  If a number N is specified, the N-th next  file  is
              examined.
       :p     Examine the previous file in the command line list.  If a number
              N is specified, the N-th previous file is examined.
share|improve this answer

Type :n and :p.

share|improve this answer
Thanks a lot for input – Jesper Rønn-Jensen Nov 16 '09 at 10:05

Found out from :h (help window) that I can use :p (for previous) and :n (for next)

share|improve this answer

type :n(colon n) & :p (colon p)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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