VI(1) BSD Reference Manual VI(1) NNAAMMEE vvii, vviieeww - screen oriented (visual) display editor based on ex SSYYNNOOPPSSIISS vvii [--RR] [--ll] [--rr] [--tt _t_a_g] [--ww _n] [++_c_o_m_m_a_n_d] _n_a_m_e _._._. DDEESSCCRRIIPPTTIIOONN VVii (visual) is a display oriented text editor based on ex(1). Ex and vvii run the same code; it is possible to get to the command mode of ex from within vvii and vice-versa. VViieeww is the same as ``vi -R'', e.g. run in read-only mode. Available options: --RR Read only. Changes to the file may not be written out. --ll Sets options for editing LISP source (options sshhoowwmmaattcchh and lliisspp). --rr In the event of an editor or system crash, the --rr option will retrieve the last saved version of the specified file, or if no file is specified, a list of saved files is printed. --tt _t_a_g If tags are used (see ctags(1)) the editor is postioned at _t_a_g. --ww_n The default window size is set to _n. ++_c_o_m_m_a_n_d Enter the file with _c_o_m_m_a_n_d_. Useful for positioning on a string or line number. 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 vvii. EENNVVIIRROONNMMEENNTT The vvii command uses the following environment variables. EXINIT User specified startup values for ex and vvii. Usually speci- fied in the file _~_/_._e_x_r_c HOME Default directory to search for the file _~_/_._e_x_r_c SHELL Shell used for _e_s_c_a_p_e_d commands (with the ex ::!! command). TERM Terminal type used to lookup terminal capabilities from the file _/_u_s_r_/_s_h_a_r_e_/_m_i_s_c_/_t_e_r_m_c_a_p. TERMCAP If set, specifies an alternate termcap file. FFIILLEESS /usr/libexec/ex?.?strings error messages /usr/libexec/ex?.?recover recover command /usr/libexec/ex?.?preserve preserve command /usr/share/misc/termcap describes capabilities of terminals ~/.exrc editor startup file /tmp/Ex_n_n_n_n_n editor temporary /tmp/Rx_n_n_n_n_n named buffer temporary /var/preserve preservation directory SSEEEE AALLSSOO awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), envi- ron(7) _V_i _Q_u_i_c_k _R_e_f_e_r_e_n_c_e _C_a_r_d. _A_n _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. BBUUGGSS Software tabs using ^^TT work only immediately after the aauuttooiinnddeenntt. Left and right shifts on intelligent terminals don't make use of insert and delete character operations in the terminal. The wwrraappmmaarrggiinn 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 intelli- gent terminals, since the terminals need help in doing this correctly. Saving text on deletes in the named buffers is somewhat inefficient. The ssoouurrccee command does not work when executed as ::ssoouurrccee; there is no way to use the ::aappppeenndd, ::cchhaannggee, and ::iinnsseerrtt commands, since it is not possible to give more than one line of input to a :: escape. To use these on a ::gglloobbaall you must QQ to ex command mode, execute them, and then reen- ter the screen editor with vvii or ooppeenn. HHIISSTTOORRYY The vvii command appeared in 3.0BSD. 3rd Berkeley Distribution June 18, 1993 2