Elements of Line Number Expressions
Form Value
- integer
value of the integer (e.g., 42).
- .
number of the current line in the buffer.
- $
number of the last line in the buffer.
- ^
number of the previous line in the buffer (same as .-1).
- -
number of the previous line in the buffer (same as ^).
- #
number of the first line on the screen.
- /pattern[/]
number of the next line in the buffer that matches
the given pattern (e.g., /February/);
the search proceeds to the end of the buffer, then wraps around
to the beginning and back to the current line.
The trailing / is optional.
- ?pattern[?]
number of the previous line in the buffer that matches
the given pattern (e.g., ?January?);
search proceeds in reverse, from the current
line to line 1, then from the last line back to the current line.
The trailing ? is optional.
- >name
number of the next line having the given mark name.
- <name
number of the previous line having the given mark name.