File: lv.doc

package info (click to toggle)
levee 3.4o-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 360 kB
  • ctags: 646
  • sloc: ansic: 5,484; makefile: 73; asm: 29; sh: 25
file content (873 lines) | stat: -rw-r--r-- 28,694 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
    Levee.					A Screen Oriented Editor.

    USAGE
	lv [+address] [file ...]

    SYNOPSIS
	Levee is a screen oriented  editor based on the  Unix editor
    "vi".  It provides a terse,  powerful way to enter and edit text
    (however,  if you want a word-processor,  you're better off with
    WordStar.)

    DESCRIPTION
	Levee is a moded editor.  It operates in 3 modes  -- visual,
    command, and insert.  Most of the editing work is done is visual
    mode,  file reading and  writing is  done in  command mode,  and
    insert mode does what you would expect.
	When you enter Levee,  you may specify  an  address to start
    editing at.  These addresses  are in the same  format as command
    mode addresses,  except that a naked + will put  you at the very
    end of the file.

      Levee is copyright (c) 1982-1997 by David L. Parsons. (see
      the notice at the end of this document for distribution terms)

    Levee.					A Screen Oriented Editor.
    COMMANDS

    Command mode commands:

	    These commands are used for  editing new files,  writing
	modified files,  changing options, doing substitutions,  and
	a subset of  the visual commands.  They take as  input whole
	lines,  terminated  by  return (to execute),  or  escape (to
	abort.)
	    
	    Command mode is reached by typing ":" or "Q" from visual
	mode.  If you enter command  mode by typing ":",  Levee will
	execute  one  command,   then return  to  visual  mode after
	prompting you  with  "[more]".   If you type anything except
	a space or return, Levee will accept another command, and so
	forth.  If,  however, you enter command mode via "Q",  Levee
	will  remain in  command mode  until  you enter the "visual"
	command.

			A NOTE ON COMMAND SYNTAX
	    A command may be preceded by an optional line-range.  If
	you do not provide a line-range,  Levee will use the default
	line-range shown by the command.  A line-range is one or two
	address specifications in the following format:
	
		(.|$|'x|#) [ (+|-) (/patt/|?patt?|#) ]

		    .  => current line.
		    $  => last line.
		    'x => the line with mark x on it.
		    #  => line #.
	    
	    For example, ".-5,.+5p" will print every line within ten
	lines of the current line.  "$-5" is the fifth line from the
	end of the file,  and "/end/+2"  is the second line past the
	next  occurrence  of  the  pattern "end".  Patterns  may  be
	regular expressions (see below.)
	    
	    Also,  a naked line-range will  set the current  line to
	the first line in the range  and print all the lines in that
	range. "1,10" sets the current line to 1,  then prints lines
	1 to 10.

	    If you specify a non-existent line in a range, the comm-
	and will abort and Levee will tell you "bad address".

    Regular expressions:
	    Levee gives  special meanings to  some characters during
	a pattern match.  The character "." will match any one char,
	the character "*" will match zero or  more occurances of the
	previous char ( so, a* will match 'a','aa','aaa', etc, or it
	will match nothing at all). If a pattern begins with "^", it
	will  only match  at the  beginning of a line,  and patterns
	ending with a "$" will only match at the end of a line.

    Levee.					A Screen Oriented Editor.
	    Brackets ('[]') have special meaning as well.  They mean
	match any one of the characters inside the brackets. '[abc]'
	will  match  'a', 'b', or 'c'.  You may  specify  a range of
	characters inside brackets by using a dash (-). '[a-z]' will
	match any lowercase alphabetic character.  If ^ is the first
	character  in  the  bracket,  it means match  any  character
	except those in the brackets.   '[^abc]' will match anything
	except 'a','b', or 'c'.

	    Backslash takes away  special  meaning  for these chars,
	but '\t' specifies  a  tab,  and \( & \)  delimit  arguments
	inside a pattern (used only by :substitute.)    The patterns
	\< and \> have special  meaning,  too;  they match the start
	and end of alpha-numeric tokens.

	    If you  turn off  the editor variable  'magic',  none of
	the above  characters will  have special  meaning  inside of
	a pattern (see 'set').

	    Some example patterns:

		^end$		Find a line that is just 'end'.
		[Ee][Nn][Dd]	Find a 'end', ignoring case.
		[A-Za-z][A-Za-z0-9]* Find the next identifier.
		(\*.*\*)	Find the next one-line pascal
				comment.
		\<the\>		Find the next occurance of `the'.

    Levee.					A Screen Oriented Editor.

---------------
    args
	show the current argument list, if one exists. The file that you
    are currently editing will be framed by '[' and ']'.

---------------
    (.,.) change
	delete lines, then enter insert mode.

---------------
    (.,.) delete
	delete lines. Deleted lines are stored in a Yank Buffer for
    later putback with "put".

---------------
    edit[!] [file]
	Discard the current file and start editing a new one. If
    changes were made to the current file, you must enter "edit!"
    to force Levee to discard the changes. If you do not specify
    a filename, Levee will try to reedit the current filename.

	When Levee reads in a new file, it will tell you how many
    bytes it read in, or [overflow] if the file is larger than the
    internal buffer (currently 32760 bytes.)

---------------
    execmode
	Remain in command mode until you use the "visual" command.
    
---------------
    file [name]
	Echo what the current filename is, its status, and the current
    line. If you provide it with a name, it will change the filename
    to that.

---------------
    (.) insert
	Insert text above the current line. If you specify a line number,
    Levee will make that the current line, then insert above it.

	Commands within insert mode:
	    ^W   => back over the last word you entered.
	    ^H   => back over one character.
	    ^U   => back over all input on this line.
	    ^V   => escape the next character typed.
		    ^V^H will put a ^H into the file.
	    ESC  => exit insert mode.
	    ^D   => If at start of line, reduce indentation 'shiftwidth'
		    columns.
	    ^T   => If at start of line, increase indentation
		    'shiftwidth' columns.

	When in insert mode, Levee will not allow you to enter any control
    characters except return and tab.  Return ends input on this line and
    opens a new line for input.

    Levee.					A Screen Oriented Editor.
---------------
    map[!] [key [text]]
	Define/list macros.  There are 3 forms of map:

	    1) map.         This lists all the active macros.
	    2) map (key).   This shows the macro associated with (key),
			    if any.
	    3) map (key) (text)
			    This maps (key) to (text). You may map any
			    key except ":" and escape. In the normal
			    form (map), the macro will be effective
			    in visual mode, but in the alternate form,
			    (map!), the macro will be effective in
			    insert and command modes.

	For example, if you map!ped return to "hello world", every time
    you entered a return in command or visual mode, the string "hello
    world" would pop up.

---------------
    next [file ...]
	Edit the next file in the arglist, or edit a new arglist. Levee
    takes its initial arglist off the command line when you execute it.
    If "autowrite" is set, Levee will write out the changes to the
    current file before editing the next one.

---------------
    (.) open
	Insert below the current line. Otherwise just like insert.

---------------
    previous
	Edit the previous file in the arglist. Otherwise, like next.

---------------
    (.,.) print
	Display lines without changing the current line.

---------------
    (.) put
	Put the contents of the yank buffer back on the line below
    the current line. If you specify a line, it resets the current
    line, then puts the yank buffer back. The yank buffer is filled
    by the delete, change, or yank commands. Put does not destroy
    the yank buffer, so you may put back text multiple times.

---------------
    quit[!]
	Exit Levee. If you want to discard changes, use "quit!"

---------------
    (.) read [file]
	put the contents of 'file' after the current line.

---------------
    rm file
	Delete 'file' from disk.

    Levee.					A Screen Oriented Editor.
---------------
    set [option=value]
	Set a tunable variable. Levee has a dozen or so user-definable
    variables which you can twiddle via this command. There are boolean,
    integer, and string variables that you can set. A string or integer
    variable is set by 'set xxx=yyy', a boolean variable is set via
    'set xxx' or 'set noxxx'.

	Here are the settable variables (and abbreviations):
	    tabsize	(ts)	tab stop.
	    shiftwidth	(sw)	columns to shift on ^D, ^T, >>, or <<
	    scroll		number of lines to scroll on ^D, ^U
	    autoindent	(ai)	supply indentation during insert mode.
	    autowrite	(aw)	write out changes before :next, :prev
	    autocopy	(ac)	make backup copies of before writing.
	    list		display tabs as ^I, end of line as $.
	    magic		use regular expressions in searches.
	    suffix		if the filename does not have a . in
				it, supply the suffix. (this is the
				only string variable.)
	    overwrite	(ow)	destroy old file first, then write.
	    beautify	(be)	When set, Levee will not allow insert
				of any control character except tab
				and return unless you escape it with
				ctrl-V.
	    wrapscan		searches wrap around end of buffer.
	    ignorecase	(ic)	Ignore the case of alphabetic characters
				during searches.
	    mapslash		(ST version only) Map '/' in filenames to
				'\'.  If the environment contains `mapslash'
				when levee is called, this variable will
				default to true, otherwise it defaults to
				false. (See the documentation for the
				Teeny-shell on how the teeny-shell interprets
				`mapslash')
	    lines (li)		(ST version only) How many lines on the display.
				This is primarily for running levee through
				the serial port - put set li=xx into your
				LVRC for a xx line terminal.
	    cols (co)		(ST version only) How many columns on the
				display.  Like the lines variable, it's for
				running levee through the serial port.
	    
	You may set multiple variables on one line, as in 'set ws noai'.
    To see the current settings of these variables, :set -- without any
    arguments -- will show the current settings.

	At startup, Levee looks in the environment variable LVRC for
    a list of variables to set (GEMDOS/MS-DOS). LVRC is one line
    of the form 'option=value ...'. If you have a LVRC defined that
    is 'ts=4 ow nows', Levee will set tabsize to 4, turn on overwrite,
    and turn off wrapscan.

	If you are using RMX, Levee looks in the file ":home:r?lvrc"
    for initialization. If you are using Osy/SWOs, Levee looks in the
    file "*.lvrc". The format of these files are different from the
    LVRC variable -- see "source" for more information.

    Levee.					A Screen Oriented Editor.
---------------
    source file
	Take command mode commands from 'file'. These commands can be
    any legal command, except "visual". If a error happens during
    execution of 'file', Levee abandons that level of source'ing.

	In Osy/SWOs, there are a few differences in insert mode from
    within a sourced file. No character has special meaning except a
    line  containing nothing but a period, which terminates insert mode.
    For example:

	    :commands
		.
		.
	    :insert
		blah blah blah blah blah blah
		blah blah blah blah blah blah
		blah blah blah blah blah blah
	    .
	    :more commands

	If you are running Levee under any other operating system,
    you cannot do a insert from a :source file.

NOTE:	If you are running Levee on RMX or Osy/SWOs, it will read
    ":home:r?lvrc" or "*.lvrc" at startup. These can consist of any
    legal command mode instruction, just like any other source file.
	    
---------------
    (.,.)substitute(delim)patt(delim)repl(delim)[qcpg]
    (.,.)substitute&
	Search for patt and replace it with repl. Levee will look for
    patt once on each line and replace it with repl. The delimiter
    may be any ascii character.

	The pattern is a regular expression, just like a search
    pattern.

	You may include parts of the pattern in the replacement string;
    A '&' in the replacement pattern copies in the whole source pattern,
    so if you do a 'sub/this/& and that/g', every instance of 'this'
    will be replaced with 'this and that'.  Also, you may pull parts of
    the pattern out by using the \( and \) argument meta-characters.
    Arguments gotten by \( & \) are put into the replacement string
    everywhere you do a \1..\9 [ \1 is the first argument you set up
    with \( & \) ]. So, if you want to reverse the order of two substrings,
    you can do 'sub/\(string1\)\(string2\)/\2\1/'.

	substitute& redoes the last substitution.

	Options:
	    q,c  => before doing the substitute, display the affected
		    line and wait for you to type a character. If you
		    type 'y', it will do the substitution. 'q' aborts
		    the substitute,  'a'  does the rest of the change
		    without prompting, and 'n' does not do it.
	    p    => print the affected lines after the change.
	    g    => do the change globally. That is, do it for every
		    occurence  of patt on a  line,  rather than just
		    once.
	
    Levee.					A Screen Oriented Editor.
---------------
    undo
	Undo the last modification to the file (except :edit, :next, :rm,
    or :write.) You can only undo the last change to a file -- undo counts
    as a change. :undo followed by :undo does nothing to the file.

---------------
    unmap (key)
	Undefine a macro (see map).

---------------
    visual [list]
	If you entered command mode by "Q" or "execmode", return to
    visual mode.  If you provide an argument list, it also does a
    `:next' on that list.

---------------
    version
	Show which version of levee this is.

---------------
    (.,.) write [file]
	Write lines to a file. If you write the everything to 'file',
    the filename is set to 'file', and if you do not specify a file,
    Levee will write to the filename.

---------------
    (.,.) wq [file]
	Write to a file, then quit.

---------------
    (.,.) yank
	Yank lines from the file into the yank buffer, for later
    putback with "put".

---------------
    xit[!]
	Write changes to the current file, then exit. If there are
    more files in the arglist, use "xit!"

---------------
    ![command]
	Execute command.

	Example:
	    !ls    => does a 'ls'.

	This command is available only under GEMDOS, MSDOS, and RMX.

---------------
    ($)=
	Give the line number of the addressed line. /end/= gives you
    the line number of the next line with a 'end' on it.

---------------
    Levee.					A Screen Oriented Editor.
    Visual mode commands.
	    Visual mode commands move you around  and modify the file.
	There are movement commands to move the cursor by a variety of
	objects.

	    In the description,  a (#)  means a optional  count.  If a
	command has a optional count,  it will tell you what the count
	does in parenthesis.  A (*) means that the command can be used
	in the delete, yank, and change commands.

	    Counts are made up by  entering digits.  If you type '45',
	the count will be set to 45. To cancel a count, type ESC.

	    This section discusses 'whitespace' occasionally.
	Whitespace is tabs, spaces, and end of line.

    How the display works.
	
	    Characters  are  displayed  on  the  screen  as  you would
	expect,  except that  nonprinting characters are  shown as ^x,
	and tabs  expand to  spaces ( unless you  set the option list,
	then they show as ^I.)  When sitting on a control character or
	tab, the cursor is placed on the FIRST character displayed. If
	you move the cursor to  any other part of them ( via j or k --
	see below), any changes will start at the next character.
	
	    Levee  does  not  display a end of  file marker, but lines
	past the end of the file are denoted by ~ lines.

	    If list is  set,  tabs  display as ^I, and the end of line
	displays as $.

	    If a  line is too long for the screen,  it will  just dis-
	appear off the end of the screen.

	    Levee will handle any screen resolution and any monospaced
	font you hand it ( if you are running in low resolution, Levee
	will give you a 25x40 window, for example.)

    Levee.					A Screen Oriented Editor.
---------------
	^A
    Show a debugging message at the bottom of the screen. This is not at
    all useful unless you are debugging the editor. Ignore it.

---------------
	(#)^D
    Scroll the screen down a half screen. If a count is specified, scroll
    down the specified number of lines.

---------------
	^E
    Scroll down 1 line (shorthand for 1^D )

---------------
	^G
    Show file statistics. Exactly like ':file'.

(*)------------
	(#)^H
    Move the cursor left one (count) chars.

---------------
	^I
    Redraw the screen.

(*)------------
	(#)^J
    Move down one (count) lines. When you use ^J and ^K (below) to move
    up or down lines, the cursor will remain in the same column, even if
    it is in the middle of a tabstop or past the end of a line.

(*)------------
	(#)^K
    Move up one (count) lines.

(*)------------
	(#)^L
    Move right one (count) characters.

(*)------------
	(#)^M
    Move to the first nonwhite space on the next line. If a count is specified,
    move to the first nonwhite count lines down.

    Levee.					A Screen Oriented Editor.
---------------
	(#)^U
    Scroll the screen up a half page. If a count is specified, scroll up
    count lines.

---------------
	^Y
    Scroll the screen up 1 line (shorthand for 1^U.)

---------------
	(#)a
    Insert text AFTER the cursor. If you give a count, the insertion will
    be repeated count times ( 40i-ESC will give you a line of 40 dashes).

    The commands in insert mode are the same for visual and command mode.

(*)------------
	(#)b
    Move to the beginning of the last word (the count'th word back).
    A word is a collection of alphanumeric characters (a-z0-9$_#) or
    any other nonwhite character (i.e. anything but space, tab, eoln).

---------------
	c
    Change a object. Change deletes an object, then enters insert mode without
    redrawing the screen. When you tell it the object to be changed, Levee
    puts a '$' on the last character of the object. You cannot change
    backwards.

    The object may be any visual mode command marked with a '(*)'. For
    example, 'c4l' will change the next 4 characters on the line to something
    else. (4cl does the same thing -- 4c4l changes the next 16 characters on
    this line.)

    'cc' will change whole lines.

    When changing, deleting, or yanking a object, it will be placed into
    a yank buffer, where it can be retrieved by the 'p' or 'P' commands.
    
---------------
	(#)d
    Delete an object. Like 'cc', 'dd' effects whole lines.

(*)------------
	(#)e
    Move to the end of the current word.

(*)------------
	(#)f(x)
    Find the next (count'th) occurance of a character on the current line.
    For example, if the cursor is sitting on the first character of the
    line 'abcdef', typing "ff" will put the cursor on the 'f'.
    
(*)------------
	(#)h
    Move left one (count) characters. Exactly like ^H.

    Levee.					A Screen Oriented Editor.
---------------
	(#)i
    Start inserting characters at the cursor. If you specify a count,
    the insertion will be duplicated count times.

(*)------------
	(#)j
    Move down one (count) lines. Exactly like ^J.

(*)------------
	(#)k
    Move up one (count) lines. Exactly like ^K.

(*)------------
	(#)l
    Move right one (count) character. Exactly like ^L.

---------------
	m(x)
    Set the marker (x). There are 26 markers available (a-z). You may
    move to a marker by use of the ' or ` commands.

(*)------------
	n
    Find the next occurance of a search pattern. When you do a search with
    a / or ? command, Levee will remember the pattern and the direction you
    searched in. 'n' will search in the same direction for the pattern, 'N'
    searches in the opposite direction.

---------------
	o
    Open a line below the current line for insertion.

---------------
	p
    Put yanked/deleted text back after the cursor. Text is yanked
    by the delete (d,x,X,D), change (c,C,s,S), and yank (y,Y) commands.

---------------
	(#)r(x)
    Replace characters (up to end of line) with (x). '4ra' will change the
    next 4 characters after the cursor into 'aaaa'.

---------------
	(#)s
    change one (count) characters. Shorthand for (#)cl.

(*)------------
	(#)t(x)
    Move up to a character on the current line. If you are on the first
    character of the line 'abcdef' and you type 'tf', you will end up sitting
    on the 'e'.

---------------
	u
    Undo last modification. You can undo ANY modification command except
    :edit, :next, :rm, or :write. (Just like :undo).

    Levee.					A Screen Oriented Editor.
(*)------------
	(#)v
    Move back to the very end of the previous (count'th) word.
    See 'b' for the definition of a word.

(*)------------
	(#)w
    Move up to the very beginning of the next (count'th) word.

---------------
	(#)x
    Delete one (count) characters forward. Shorthand for (#)dl.

---------------
	y
    Yank an object for later use by put. 'yy' yanks whole lines.

---------------
	A
    Append text at the end of the line. Shorthand for $a.

(*)------------
	(#)B
    Move to the beginning of the current word. Exactly like 'b'.

    NOTE: this is incorrect. the capitalized word movement commands should,
    and will in the future, be used for movement by space-delimited words.

---------------
	C
    Change to the end of the line. Shorthand for c$.

---------------
	D
    Delete to the end of the line. Shorthand for d$.

(*)------------
	(#)F(x)
    Move to the first (count'th) previous occurance of a character on the
    current line. If you are sitting at the end of the line 'abcdef', typing
    "Fa" will move you back to the 'a' at the start of the line.

(*)------------
	(#)G
    Goto line. If you specify a count, Levee will move to that line, and if
    there is no count, Levee moves to the absolute end of the file.

    To get to the start of the file, type "1G". To the end, just "G".

(*)------------
	H
    Move to the first nonwhite character at the top of the screen.

---------------
	I
    Insert at the end of the current line. Shorthand for $i.

    Levee.					A Screen Oriented Editor.
---------------
	(#)J
    Join two (count+1) lines together. Joining appends the second line at
    the end of the first, putting a space between them. If the first line
    ends in whitespace, Levee will not put in a space.

(*)------------
	L
    Move to the last nonwhite character on the last line of the screen.

(*)------------
	M
    Move to the first nonwhite character in the middle of the screen.

---------------
	O
    Open a line above the current line. Otherwise works just like 'o'.

---------------
	P
    Put back the yank buffer at the cursor. Otherwise works just like 'p'.

---------------
	Q
    Enter and remain in command mode. Just like the command :exec. To get
    back to visual mode, you must enter the command ':visual'.

---------------
	R
    Replace mode. A limited subset of insert mode that overwrites characters
    up to end of line. All of the normal insert mode commands apply.
    If you overwrite a character, then back over it with ^H,^U, or ^W, it
    will reappear after you exit Replace mode.

    Escape exits replace mode.

    NOTE: due to a bug, entering a <return> in Replace mode will drop you
    back into visual mode with an error. The replacements you have made
    will remain.

---------------
	S
    Change characters backwards. Shorthand for (#)ch.

(*)------------
	(#)T(x)
    Move back to character on current line. If you are on the last character
    of the line 'abcdef', typing "Ta" will move you back to the 'b'.

(*)------------
	(#)W
    Move to end of word. Exactly like 'e'.

---------------
	(#)X
    Delete characters backwards. Shorthand for (#)dh.

    Levee.					A Screen Oriented Editor.
---------------
	Y
    Yank to end of line. Shorthand for y$.

---------------
	ZZ
    Write changes to current file and exit if last file in arglist.
    Exactly like :xit.

(*)------------
	(#)$
    Move to end of line. If you give a count, move to the end of the (count-1)
    line down (so 2$ moves you to the end of the next line.).

(*)------------
	%
    Find matching bracket, parenthesis, or squiggly bracket. If you are not
    sitting on a '[]{}()', Levee will search forward for one of them on the
    current line, then match whatever it finds.

(*)------------
	^
    Move to the first nonwhite character on the current line.

(*)------------
	&
    Redo last substitution command.

(*)------------
	(#){
    Move to the beginning of the count'th paragraph back. A paragraph is
    delimited by a blank line.

(*)------------
	(#)}
    Move to the end of the count'th paragraph forward.

(*)------------
	(#)(
    Move to the beginning of the count'th sentence back. A sentence is
    delimited by a ., a !, or a ? followed by a space, a tab, or end of line.

(*)------------
	(#))
    Move to the end of the count'th sentence forward.

(*)------------
	(#)-
    Move to the (count'th) previous line, first nonwhite.

(*)------------
	(#)+
    Move to the (count'th) next line, first nonwhite.

---------------
	(#)~
    Change the case of the next count characters. Upper case becomes lowercase,
    lowercase becomes uppercase.

    Levee.					A Screen Oriented Editor.
(*)------------
	`(x)
    Move to the exact position of mark (x). There is a special mark for some
    of the visual mode move ment commands -- '' will move you to where you
    were before the last (,),',`,G,/,?,n,N command.

---------------
	:
    Execute one command mode command. When the command is done, it will return
    to visual mode if it produces one line of output, but if it scrolls the
    screen, Levee will prompt [more] before returning to visual mode. If you
    type a : in response to the [more] prompt, Levee will remain in command
    mode for one more command.

---------------
	(#)<(#)
    Shift one (count) objects left. If you specify a second count, Levee will
    shift the object left that many columns -- if you do not, they will be sh
    shifted shiftwidth columns.

    This is a nondestructive shift. If the shift would carry past the left
    margin, the objects will be moved up to the left margin but no farther.

    Like the other object movement commands, '<<' will affect whole lines.

---------------
	(#)>(#)
    Shift one (count) objects right. Just like <, except it will not shift
    objects past the right margin of the screen. If you do shift an object
    past the right margin of the screen, all of its indent will be removed
    and it will end up by the left margin.

---------------
	.
    Repeat last modification command. (except undo)

(*)------------
	?
    Search for pattern backwards. Escape aborts the search pattern, and a
    empty pattern means search for the last pattern again.

(*)------------
	/
    Search for pattern forwards. Otherwise like ?.

(*)------------
	(#)|
    Move to specified column. If you don't have a count, move to column 0.

    Levee.					A Screen Oriented Editor.


    LIMITATIONS
	Levee can only edit files up to 256000 characters long. ^M is used
    as its internal line separator, so inserting ^M will have interesting
    consequences.

    BUGS
	Probably infinite.

    AUTHOR
			David L. Parsons (orc)

	    Testing, suggestions, and impractical design goals by:
			    Jim Bolland.
			    John Tainter.
			    John Plocher.

    Levee.					A Screen Oriented Editor.

    COPYRIGHT
  
   Copyright (c) 1982-1997 David L Parsons
   All rights reserved.
  
   Redistribution and use in source and binary forms are permitted
   provided that the above copyright notice and this paragraph are
   duplicated in all such forms and that any documentation,
   advertising materials, and other materials related to such
   distribution and use acknowledge that the software was developed
   by David L Parsons (orc@pell.chi.il.us).  My name may not be used
   to endorse or promote products derived from this software without
   specific prior written permission.  THIS SOFTWARE IS PROVIDED
   AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
   WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
   FITNESS FOR A PARTICULAR PURPOSE.
 
    Levee.					A Screen Oriented Editor.
			    I N D E X
	Are you kidding?