Name

vedit - Visual text editor

Syntax

vedit file

Description

Vedit invokes a full screen editor on a text (txt) or shell script (cmd) file. Adequate terminal emulation is required to use vedit.

Control-Key Editing Commands


^M Carriage return

^H Backspace

^U Cursor right

^K Cursor up

^J Cursor down

DEL Delete left

ESC Bring up the command line

^L Redraw screen

^A Start of line

^E End of line

^D Delete forward

^O Toggle overstrike/insert mode

^Y Yank line (cursor to right) to kill buffer

^X Delete entire line into kill buffer

^P Previous screen

^N Next screen

^W Toggle word-wrap

^T Top of buffer

^B Bottom of buffer

^G Get kill line, insert at cursor’s position

^I Insert a tab

^F Toggle tab mode (insert real tabs or spaces)

The Command Line

Pressing ESC will bring up the command line which recognizes the follow commands (invoked by pressing the first letter of a command’s name):

New Clear the buffer (with the option of saving any changes)

Save Saves the buffer to the file.

Write Writes the buffer to a different file.

Append Appends a file to the end of the current buffer.

Find Finds a pattern of text.

Replace Replaces all occurrences of a pattern.

Info Information on the current buffer’s contents.

Quit Quit the editor (with the option of saving any changes).

See Also

ed(C), edit(C), setenv(C)