HELP XVEDKEYS                                     Adrian Howard Jun 1991
                                         Updated: Adrian Howard Aug 1992

A guide to the default key bindings for XVed.

         CONTENTS - (Use <ENTER> g to access required sections)

 -- INTRODUCTION
 -- NOTATION
 -- INTERACTIONS BETWEEN MOTIF AND XVED
 -- KEY BINDINGS
 -- RELATED DOCUMENTATION


-- INTRODUCTION -------------------------------------------------------

XVed will normally attempt to determine the type of keyboard it is
attached to and apply appropriate key bindings. If XVed cannot identify
a keyboard then the bindings in the source file SRC * VEDXVEDKEYS.P are
used. This file gives a description of the default key bindings supplied
by this library.


-- NOTATION -----------------------------------------------------------

The descriptions of the key bindings use the following notation:

    ^A
    The single character generated by pressing the <CTRL> key and the
    "A" key simultaneously.

    ESC A
    The sequence of pressing and releasing the <ESCAPE> (ESC) key and
    then pressing the "A" key.

    META A
    The sequence generated by pressing the <META> modifier key
    and the "A" key simultaneously. The META key is sometimes marked
    "Left" or "Alt". These bindings should hold true for all XVed
    keyboard types.

    KP-X
    The "X" key on the keypad (usually on the right hand side of the
    keyboard

    fN
    Function key N. The amount and name of function keys vary from
    keyboard to keyboard.

    LF
    The line-feed key.

    BS
    The back-space key.

    DEL
    The delete or erase key.

    UP, DOWN, LEFT, RIGHT
    The normal cursor keys.

    PRIOR, NEXT, HOME, END, INSERT
    These keys vary from keyboard to keyboard and may not exist as a
    single key press, or have a different name from the one given above.
    The names used here are those from the logical KeySym names used in
    X.


-- INTERACTIONS BETWEEN MOTIF AND XVED --------------------------------

If you are using Motif there is a possibility that there will be
interactions between the Motif "virtual key bindings" and your XVed
keyboard setup. For example most Motif systems have the function key f10
bound to the the virtual key osfMenuBar which cause keyboard focus to
move to the first item on the menu bar. This process will override any
binding XVed places on the key.

One way of overcoming this is to rebind the XVed function to another key
using the normal methods (see HELP *VEDSET.)

Another would be to change which key is used to switch to the menu bar.
You can do this by altering the menuAccelerator resource of the menu bar
in XVed. For more information see REF *RowColumnWidget. As an example
adding the following to your resource file would cause the key
combination Shift-f10 intead of osfMenuBar to be used to shift focus to
the menu bar:

    XVed*menuAccelerator: Shift <Key>F10

You could also redefine which key osfMenuBar is bound to. If you are
using the MWM window manager you could add the following line to your
".motifbind" file:

    osfMenuBar  :Shift  <Key>F10

This would redefine osfMenuBar as Shift-f10, instead of f10 (for more
information see the manual for MWM.)

Altering your ".motifbind" file will alter the behaviour of the virtual
key bindings in all the Motif applications which you are using. If you
would prefer to alter just the behaviour of XVed you could instead alter
the resource named defaultVirtualBindings. For example the following
would again redefine osfMenuBar as Shift-f10.

    XVed*defaultVirtualBindings: \
        <... other virtual bindings...>
        osfMenuBar :Shift  <Key>F10\n\
        <... other virtual bindings...>

For more information see man 3 VirtualBindings under Motif.


-- KEY BINDINGS -------------------------------------------------------

Key         Function                                XVed Procedure
---         --------                                --------------

META X      Cut the text selection from the file    vedcut_selection
META C      Copy selected text to the clipboard     vedcopy_selection
META V      Paste the clipboard into the document   vedpaste_selection
META D      Compile the text on the clipboard       vedcompile_selection
META H      -vedgetsysfile- from the clipboard      vedhelpon_selection
META M      Toggles the menubar on and off          -
META S      Toggles the scrollbar on and off        -

UP          Move cursor up one char                 vedcharup
DOWN        Move cursor down one char               vedchardown
LEFT        Move cursor left one char               vedcharleft
RIGHT       Move cursor right one char              vedcharright

ESC UP      Move cursor up several lines            vedcharuplots
ESC DOWN    Move cursor down several lines          vedchardownlots
ESC LEFT    Move cursor left several lines          vedcharleftlots
ESC RIGHT   Move cursor right several lines         vedcharrightlots

KP-8        Move cursor up one char                 vedcharup
KP-2        Move cursor down one char               vedchardown
KP-4        Move cursor left one char               vedcharleft
KP-6        Move cursor right one char              vedcharright
KP-7        Move cursor north-west one char         vedcharupleft
KP-9        Move cursor north-east one char         vedcharupright
KP-1        Move cursor south-west one char         vedchardownleft
KP-3        Move cursor south-east one char         vedchardownright

ESC KP-8    Move cursor up several lines            vedcharuplots
ESC KP-2    Move cursor down several lines          vedchardownlots
ESC KP-4    Move cursor left several lines          vedcharleftlots
ESC KP-6    Move cursor right several lines         vedcharrightlots
ESC KP-7    Move cursor north-west several chars    vedcharupleft
ESC KP-9    Move cursor north-east several chars    vedcharupright
ESC KP-1    Move cursor south-west several chars    vedchardownleft
ESC KP-3    Move cursor south-east several chars    vedchardownright

ENTER       Move to the status line                 vedenter
KP-0        Move one word to the left               vedwordleft
KP-.        Move one word to the right              vedwordright
KP-+        Switch between buffer and status line   vedstatusswitch
KP--        Redo last command                       vedredocommand

^?          Delete char to left of the cursor       vedchardelete
DEL         Delete char to left of the cursor       vedchardelete
^h          Delete char under cursor                veddotdelete
BS          Delete char under cursor                veddotdelete

HELP        Get help (defaults to ved_hkeys)        vedhelpkey
ESC HELP    Get help on the purpose of a key        ved_hkey

PRIOR       Move up one screen                      vedscreenup
ESC PRIOR   Move to the top of the file             vedtopfile
NEXT        Move down one screen                    vedscreendown
ESC NEXT    Move to the bottom of the file          vedendfile

HOME        Move to start of text line              vedtextleft
ESC HOME    Move to the left screen edge            vedscreenleft
END         Move to end of text line                vedtextright
ESC END     Move to the right screen edge           vedscreenright

ESC w       Toggle normal/double length window           -
INSERT      Toggle static mode                      ved_static

f1          Move to the status line                 vedenter

f2          Delete line to the left                 vedclearhead
f3          Delete the whole line                   vedlinedelete
f4          Delete line to the right                vedcleartail
f5          Delete word to the left                 vedwordleftdelete
f6          Delete word to the right                vedwordrightdelete

f7          Mark start of a marked range            vedmarklo
f8          Mark end of a marked range              vedmarkhi
f9          Move a marked range                     ved_m
f10         Copy a marked range                     ved_t

f11         Push position on position stack         vedpushkey
f12         Swap position with the top of stack     vedexchangeposition

ESC f1      Refresh the screen                      vedrefresh

ESC f2      Yank a word from -vvedworddump-         ved_yankw
ESC f3      Yank a line from -vvedlinedump-         ved_yankl
ESC f4      Yank a word from -vvedworddump-         ved_yankw
ESC f5      Yank a word from -vvedworddump-         ved_yankw
ESC f6      Yank a word from -vvedworddump-         ved_yankw

ESC f7      Mark from the start of the file         ved_mbf
ESC f8      Mark from the end of the file           ved_mef
ESC f9      Move range in from last file            ved_mi
ESC f10     Copy range in from last file            ved_ti

ESC f11     Pop position from position stack        vedpopkey
ESC f12     Clear the position stack                ved_cps


-- RELATED DOCUMENTATION ----------------------------------------------

HELP *XVED/Server Keyboard Setup - A description of keyboard setup in
                                   XVed

HELP *DXVEDKEYS   - Key bindings for DECwindows terminal
HELP *NCDXVEDKEYS - Key bindings for NCD X terminal
HELP *SUNXVEDKEYS - Key bindings for Sun workstations
HELP *HPXVEDKEYS  - Key bindings for HP workstations


--- C.x/x/ved/help/xvedkeys ------------------------------------------
--- Copyright University of Sussex 1991. All rights reserved. ----------