Address |
Includes
|
1,$ % |
all lines in the file |
0 |
top of file |
. |
current line |
$ |
last line |
n |
line n |
x,y |
lines x through y |
-[n] |
one or n lines previous |
+[n] |
one or n lines ahead |
'x |
lines marked with x |
x-[n] |
one or n lines before x |
x+[n] |
one or n lines after x |
' ' |
previous mark |
/pat/ |
ahead to match of pat |
?pat? |
back to match of pat |
|
ex commands are of the form
:[address]command[options]
Option |
Meaning
|
! |
A variant form of command (override) |
count |
repeat command count times |
file |
Filename:
% is current file,
# is previous file |
For map command #n
represents function key n
To enter characters such as Esc, ^[,
or CR, (^M), first type ^V.
|