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?

link|improve this question

feedback

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

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 9 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.
link|improve this answer
feedback

Type :n and :p.

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

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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