Vi question

Conor P. Cahill cpcahil at virtech.uucp
Sat Jun 16 08:36:00 AEST 1990


In article <13132 at ulysses.att.com> mab at ulysses.att.com (Muhammad Basit) writes:
>I have a simple vi question. How do I substitute a character with the
>newline character in vi? I tried '\n', '\\n', the ascii code etc but
>it doesn't seem to work. 

:1,$ s/c/^v^M/g     (^v is <ctrl-v> and ^M is <return>. You will only see ^M)



-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list