print lines
[line_range]p [line_range]P
This command clears your screen and prints the specified lines on your screen. If the number of lines exceeds the size of your screen, the command will pause until you type a character to continue. If the first form is used (small p), then any non-printing characters (less than hex 20 and greater or equal to hex 80) will be expanded into a \hh sequence. This can be useful in finding out the hex values of some of the Function and Cursor keys (proceed them with the “-” on the keypad to put them in your text). This command is nearly always used in conjunction with the Global command. It allows you to display lines which are not adjacent in your buffer. For example:
g/index/p
will print all lines on your screen that contain the string “index”. You may not edit the displayed lines using the cursor keys. The editor has temporarily dropped out of full screen mode.
Set to the last line printed.
Not affected.