fv
is a ``friendly'' editor for binary files. Its function
is similar to that of vi for text files, and has a familiar
feel for those who are comfortable with vi.
Simple online help is available by typing Control-H in most fv modes. Scrolling up and down in the window is very similar to motion in more or vi. In some environments, the cursor keypad may also be used to more around in the file. Most edit commands will operate multiple times when preceded by a number.
Editor State, Hex Edit Mode
0-9 Change the current hex digit
a-f Change the current hex digit
^H Cursor left
h Cursor left
j Cursor down
k Cursor up
l Cursor right
q Quit editing the string, do not store
^M Finished editing (same as return)
q Quit editing the string, do not store
^X Quit editing the string, do not store
? Display online help information
Editor State, String Edit Mode
ESC Mode:
a Add after cursor, enter insert mode
A Add at end of string, enter insert mode
b Go to previous word
c f Delete including character, insert mode
c t Delete to character, put in insert mode
c w Delete word, put in insert mode
c ^ Delete to start of string, insert mode
c 0 Delete to start of string, insert mode
c $ Delete to end of string, insert mode
C Change to end of string
d f Delete including character
d t Delete to character
d w Delete word
d ^ Delete to start of string
d 0 Delete to start of string
d $ Delete to end of string
D Delete to end of string
e Go to end of this word or next
f Go to next character typed
G Go to end of string
h Cursor left
^H Cursor left
i Insert at cursor, enter insert mode
I Insert at start of string, insert mode
j Cursor down
k Cursor up
l Cursor right
^M Finished editing (same as return)
q Quit editing the string, do not store
r Replace single character
R Replace multiple characters (overstrike)
s Substitute for single character
t Go to character prior to next typed key
T Go to character prior to next typed key
u Undo last change
U Undo all changes to string
w Go to next word
x Erase single character
^X Quit editing the string, do not store
0 Beginning of string
$ End of line
~ Switch case of letter at cursor position
. Repeat last edit command
^ Beginning of string
? Display online help information
ESC Enter ESC command mode
Insert Mode only:
^H Delete left of cursor (backspace key)
^V Add next raw character to string
The editor recognizes the environment variable FVINIT as a list
of key commands to execute on startup as if entered by the keyboard.
This is done before the display is brought active, so that preferred
fv mode commands can be placed into the FVINIT and executed
automatically at invocation. In the event of having both this
environment variable set and specifying the -k parameter, the
commands specified in the FVINIT environment variable will always
be executed first.
In the main editor and string editor, entering a number before
a command repeats that command similar to vi (but will work for
functions such as searching and editing as well).
fv
is mainly a stable product, but segmentation faults should be expected
at the least unexpected moments.
This program is freeware meaning that it may not be sold for profit
or included in a package which is sold for commercial gain. The
author grants fitness of this product for NO purpose, nor is
liable for damages incurred as the result of attempting to apply this
product for a purpose, sane or otherwise.
fv is Copyright 1991-1998 Chris Hooper (cdh@mtu.edu)