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