Line Address line

<none>
(none; line not specified) Refers to the current line only.
number
Refers to the absolute line number specified.
.
Refers to the current line.
$
Refers to the last line.
&
Refers to the top line on your screen.
@
Refers to the defined center line.
%
This refers to the current line if you are in the text area and line zero if you are on the command line.
/pattern/
This serves as the line address of the next line which contains an instance of the specified pattern. The search for pattern will begin at the current cursor position and will continue to the end of the buffer. If no match has been found by that time, the search will wrap around to the beginning of the buffer and continue looking for pattern from line one. If no match is found in the entire buffer then an error will be issued.
?pattern?
This serves as the line address of the previous line which which contains an instance of the specified pattern. The search for pattern will begin at the current cursor position and will go backwards through the buffer wrapping around from the first to last line if necessary. If no match is found an error will be issued as above.

In addition, line addresses may be combined with other line addresses using the + and - keys to form expressions. You may limit a line address to lie within the buffer (between 1 and $) by following it with an or-bar (|). For example

.+5|
Refers to the 5th line after the current line or the last line if there are less than five lines after the current line.