[comp.unix.questions] INSERT CONTROL CHRACTERS INTO vi editor...

jagdeep@ncst.ernet.in (Jagdeep Antani) (12/03/90)

 hello!!
  I am looking for the manner to insert any control character in vi 
  . I think you can escape meaning of it in the text entry mode. This
  is how the solution should be.
  But, i cant think of how it is done. Any ideas?
  It is a  point to be seen between the lines of any manual if at all
  it says about it.
  ==jagdeep

tore@bibsyst.UUCP (Tore Morkemo) (12/06/90)

In article <1148@shakti.ncst.ernet.in> jagdeep@ncst.ernet.in (Jagdeep Antani) writes:

> hello!!

Hi !

>  I am looking for the manner to insert any control character in vi 

In input mode you can enter ctrl-characters by first pressing <CTRL>-v
and then pressing the ctrl-character.
example :
  To enter ctrl-l into the text :
    Press <CTRL>-v and then <CTRL>-l.

  You can also enter <ESC> by pressing <CTRL>-v and the the <ESC> key.

This is very useful with :map and makes it possible to enter <RETURN>
and other useful ctrl-characters in macros.

Tore.

+----------------------------------------------------------------------+
!   Tore Morkemo, Bibliotek-Systemer A/S, N-3250 Larvik, Norway        !
!   uucp: ...nuug!bibsyst!tore       Tel: +47 34 82 202                !
!            tore@bibsyst.uucp       Fax: +47 34 85 185                !
+----------------------------------------------------------------------+