.ta 15n
.TP
VI(1)	General Commands Manual
.br
.ta 3n 8n
.PP
NAME
.TP
	vi - vis - vi simple, a programmer's text editor
.br
.PP
SYNOPSIS
.TP
	vi [file]
.br
.PP
DESCRIPTION
.TP
	vi simple is a text editor that is backwards compatible with vi.  
       It can be used to edit all kinds of plain text.  It is especially useful for editing programs.
.br
.br
       Most often vi is started to edit a single file with the command
.br
.br
            vi file
.br
.br
       More generally vi is started with:
.br
.br
            vi [file]
.br
.br
       If the file is missing, the editor will start with an empty buffer.  Otherwise the file specified
    is loaded.
.br
.br
       This version of vi requires shared memory in order to operate. It supports up to 4096 lines of text
     and 512 lines of put/paste buffer. Document lines are limited to 80 characters, constrained by the TI legacy format for text files.
    A future release will support the use of Unix99 native files with lengths up to 125 characters.
.br
.br
     vi operates in one of three modes:
.br
- Immediate command mode: This is the starting mode and commands are initiated via a single keystroke.
.br
- Typed command mode: This mode is initiated from the immediate command mode via 
the colon character. User commands are then entered.
.br
- Immediate edit mode: This mode is initiated from the immediate command mode via any of several commands. 
Some commands support an operation count that effectively executes the action multiple times. The nominal syntax for such commands is NC or NDD,
where NC is number-command and NDD is number-double character command. For instance, to delete 25 characters from the current cursor position,
the command 25x will do so. To delete 25 lines from the current cursor position, 25dd will do so. Note that a double character command can be
entered as DND. DND is first double character - number - second double character. 
.br
.br
    Immediate commands:
.br
   a - append after cursor
.br
    b - back one word
.br
dd - delete line(s). Deleted lines are added to the put/paste buffer.
.br
G - go to end of document
.br
 I - insert at head of line
.br
 i - insert at cursor
.br
J - merge lines
.br
O - insert line before
.br
o - insert line after
.br
p - put / paste lines from put/paste buffer that were recorded using the dd or yy command
.br
w - forward one word
.br
x - delete character
.br
yy - yank line(s) -- add lines to the put/paste buffer
.br
    up/down/left/right - move the cursor
.br
.br
    Typed commands. These begin first by typing the colon character:
.br
 q - quit
.br
 w [file] - write file, either the current name or with a new name
.br
 number - move cursor to line specified by number (example :100)
.br
.br
 Immediate edit commands:
.br
ESC, F1 and F9 - exit immediate edit mode
.br
ENTER - inserts a line feed, either splitting the current line or adding a new blank line
.br
up/down/right - move the cursor
.br
left, backspace - remove the character to the left of the cursor
.br
All visible characters ASCII value 32 (space) and greater - add character to document text
.br

.ta 15n
.TP
UNIX99R3	October 23, 2025
