xref: /openbsd/usr.bin/vi/docs/internals/context (revision 404b540a)
1#	$OpenBSD: context,v 1.3 2001/01/29 01:58:37 niklas Exp $
2
3#	@(#)context	8.6 (Berkeley) 10/14/94
4
5In historic vi, the previous context mark was always set:
6
7ex address:
8    any number, <question-mark>, <slash>, <dollar-sign>,
9    <single-quote>, <backslash>
10
11ex commands: undo, "z.", global, v
12
13vi commands: (, ), {, }, %, [[, ]], ^]
14
15nvi adds the vi command ^T to this list.
16
17=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
18In historic vi, the previous context mark was set if the
19line changed:
20
21vi commands: '<mark>, G, H, L, M, z
22
23=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24In historic vi, the previous context mark was set if the
25line or column changed:
26
27vi commands: `<mark>, /, ?, N, n
28
29nvi adds the vi command ^A to this list.
30
31=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
32In historic vi, the previous context mark was set in non-visual
33mode for ^R and ^L if the line changed, but I have yet to figure
34out how the line could change.
35