jcs's openbsd hax
openbsd
1# $OpenBSD: ev,v 1.2 2001/01/29 01:58:32 niklas Exp $
2
3# @(#)ev 8.4 (Berkeley) 4/29/94
4
5Ev: Vi: Result:
6<CK> <CK> (Cursor keys). Move around the file.
7
8Meta key commands:
9^A<#> <#>G Goto line #.
10^A$ G Goto the end of the file.
11^A/ / Prompt and execute a forward search.
12^A: : Prompt and execute an ex command.
13^A? ? Prompt and execute a backward search.
14^Ac y'<c> Copy to mark in line mode (or copy the current line).
15^AC y`<c> Copy to mark in character mode.
16^Ad d'<c> Delete to mark in line mode (or delete the current line).
17^AD d`<c> Delete to mark in character mode.
18^Aj J Join lines.
19^Am m<c> Mark the current cursor position.
20^AN N Repeat search in the reverse direction.
21^An ^A Search for the word under the cursor.
22^Ar u Redo a command.
23^Au u Undo a command.
24
25Single key commands:
26^B ^B Page up a screen.
27^C ^C Interrupt long-running commands.
28^D ^D Page down a half-screen.
29^E $ End of line.
30^F ^F Page down a screen.
31^G ^G File status/information.
32^H X Delete the character to the left of the cursor.
33^I (TAB)
34^J j Cursor down one line.
35^K k Cursor up one line.
36^L ^L Redraw the screen.
37^M (CR) ^M In insert mode, split the line at the current cursor,
38 creating a new line.
39 In overwrite mode, cursor down one line.
40^N n Repeat previous search, in previous direction.
41^O (UNUSED)
42^P p Paste the cut text at the cursor position.
43^Q (XON/XOFF)
44^R (UNUSED)
45^S (XON/XOFF)
46^T D Truncate the line at the cursor position.
47^U ^U Page up a half-screen.
48^V<c> ^V<c> Insert/overwrite with a literal next character.
49^W w Move forward one whitespace separated word.
50^X x Delete the current character.
51^Y (UNUSED)
52^Z ^Z Suspend.
53
54New ex mode commands:
55
56^A:set ov[erwrite] Toggle "insert" mode, so that input keys overwrite
57 the existing characters.