[0m


VI(1)		    UNIX Programmer's Manual		    VI(1)



[1mNAME
     [0mvi - screen oriented (visual) display editor based on ex

[1mSYNOPSIS
     vi [0m[ [1m-R [0m] [ [1m-t [0mtag ] [ [1m-r [0m] [ [1m+[0m_c_o_m_m_a_n_d ] [ [1m-l [0m] [ [1m-w[0m_n ] name
     ...

[1mDESCRIPTION
     [0m_V_i (visual) is a display oriented text editor based on
     _e_x(1).  _E_x and _v_i run the same code; it is possible to get
     to the command mode of _e_x from within _v_i and vice-versa.

     The _V_i _Q_u_i_c_k _R_e_f_e_r_e_n_c_e card and the _I_n_t_r_o_d_u_c_t_i_o_n _t_o _D_i_s_p_l_a_y
     _E_d_i_t_i_n_g _w_i_t_h _V_i provide full details on using _v_i.

[1mOPTIONS
     -l   [0mSet up for editing _L_I_S_P programs.

     [1m-r   [0mRecover the named files after a crash.

     [1m-R   [0mEdit files in read only state.  This has the same
	  effect as the _v_i_e_w command.

     [1m-t [0m_t_a_g
	  Edit the file containing _t_a_g.  There must be a tags
	  database in the directory, built by [1mctags[0m(1), that con-
	  tains a reference to _t_a_g.

     [1m-w[0m_n  Set the default window to _n lines.

     [1m+[0m_c_o_m_m_a_n_d
	  Start the editing session by executing _c_o_m_m_a_n_d.

[1mFILES
     [0mSee _e_x(1).

[1mSEE ALSO
     [0m_c_t_a_g_s(1), _e_x(1), _e_d_i_t(1),
      ``Vi Quick Reference'' card, ``An Introduction to Display
     Editing with Vi''.

[1mAUTHOR
     [0mWilliam Joy
     Mark Horton added macros to _v_i_s_u_a_l mode and is maintaining
     version 3

[1mBUGS
     [0mSoftware tabs using [1m^T [0mwork only immediately after the
     _a_u_t_o_i_n_d_e_n_t.

     Left and right shifts on intelligent terminals don't make
     use of insert and delete character operations in the



Printed 12/12/91    Revision 1.4 of 02/07/90			1






VI(1)		    UNIX Programmer's Manual		    VI(1)



     terminal.

     The _w_r_a_p_m_a_r_g_i_n option can be fooled since it looks at output
     columns when blanks are typed.  If a long word passes
     through the margin and onto the next line without a break,
     then the line won't be broken.

     Insert/delete within a line can be slow if tabs are present
     on intelligent terminals, since the terminals need help in
     doing this correctly.

     Saving text on deletes in the named buffers is somewhat
     inefficient.

     The _s_o_u_r_c_e command does not work when executed as [1m:source[0m;
     there is no way to use the [1m:append[0m, [1m:change[0m, and [1m:insert
     [0mcommands, since it is not possible to give more than one
     line of input to a [1m: [0mescape.  To use these on a [1m:global [0myou
     must [1mQ [0mto _e_x command mode, execute them, and then reenter
     the screen editor with _v_i or _o_p_e_n. The [1m:map #n str [0mcommand
     for mapping [1mstr [0mto function key [1mn [0mdoes not work as docu-
     mented if the standard Archimedes keyboard is being used.
     The #n argument is translated into a character sequence
     which does not correspond to the characters generated by the
     Archimedes keyboard function keys. To map strings to func-
     tion keys the user must type [1m:map #fn str [0mwhere n is between
     1 and 12. Similarly, the function key can be unmapped by
     typing [1m:unmap #fn[0m.



























Printed 12/12/91    Revision 1.4 of 02/07/90			2



[0m