🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2888

Re: A little question on vi

#2888
From: nicholas.hounsome
Date: Thu, 21 Jan 1993 09:24
26 lines
1220 bytes
From article <1993Jan21.061448.25739@cdf.toronto.edu>, by g2chanhk@cdf.toronto.edu (Simon Ho Ki CHAN):
> 	Hi, is there anybody who knows how to put the EOF marker at the end of 
> the last line, instead of putting it in a new line? e.g I wanna create a file 
> like the following
> 
> 		blah, blah
> 		blah, blah<EOF>
> 
> 	instead of
> 
> 		blah, blah
> 		blah, blah
> 		<EOF>
> 
> 	Thanks for advance.

It is not possible - vi is fundamentaly a line editor - its  core is the 
ex part which is a line editor which is roughly based on ed which is a line
editor. 

There is no EOF marker by the way (Well not in unix anyway).

This is also the main reason why you cannot delete the newline with 'x' or 
'X' as you can in character stream oriented editors such as emacs.

Nick Hounsome
Technical Details
Message-ID: <1993Jan21.092427.9619@cbfsb.cb.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsc!cbfsb!cbnewsg.cb.att.com!nh
References: <1993Jan21.061448.25739@cdf.toronto.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsc!cbfsb!cbnewsg.cb.att.com!nh
From: nh@cbnewsg.cb.att.com (nicholas.hounsome)
Subject: Re: A little question on vi
Message-ID: <1993Jan21.092427.9619@cbfsb.cb.att.com>
Sender: news@cbfsb.cb.att.com
Organization: AT&T
References: <1993Jan21.061448.25739@cdf.toronto.edu>
Date: Thu, 21 Jan 1993 09:24:27 GMT
Lines: 26