home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
224b.lha
/
vi.doc
< prev
Wrap
Text File
|
1989-04-08
|
2KB
|
95 lines
Forth block-oriented vi-like editor
-----------------------------------
1 vi enter vi on screen 1
v reenter vi on whatever screen you were last in
vw after an error when loading, enter vi with the cursor ON the
word that caused the problem
commands in command mode:
space move forward a char in current line
z zap - delete current screen
^e go to end of line
^x
w move back a word
0-9 enter an additional digit for number of times to execute
many of the commands
b move back a word
c change one character at current position
d first character of a delete sequence, see below
e move to the last line of the current screen
f find the next occurence in the current screen of the
next character typed (wraps)
g go to 'm'arked (alternate) screen
i enter insert mode
m mark the current screen at the alternate screen
n move forward one (n) screens (next)
o make current line a blank line, scrolling the rest down (open)
p move backwards one (n) screens (previous)
q exit vi, saving changes (quit)
r enter replace mode
s go to screen one (n) (screen)
t go to top line of current screen
u empty-buffers, undoing all since last flush (undo)
w move forward a word
x delete character at cursor
h cursor back a character
j cursor down a line
k cursor up a line
l cursor forward a character
\ switch to alternate screen, making this one alternate
: enter other editor
^h cursor back a char
^j cursor down a line
^k cursor up a line
^l cursor forward a char
^m newline
^u forward a char
^r redraw screen
$ go to end of line
^ go to front of line
@ load current screen
In replace mode,
^a upper-case lock
^b lower-case enable
^e go to end of line
^h cursor back a char
^j cursor down a char
^[ escape out of replace mode
^r redraw screen
^x delete character at cursor
^v quote next character (useful if it's an escape, etc)
^u cursor forward a char
In delete mode,
d delete line
c delete character
w delete word
f
t
e
g
b
w
h
j
k
^h
j
k
l
m
$
^