home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / editors / 3264 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsc!cbfsb!cbnewsg.cb.att.com!nh
  3. From: nh@cbnewsg.cb.att.com (nicholas.hounsome)
  4. Subject: Re: A little question on vi
  5. Message-ID: <1993Jan21.092427.9619@cbfsb.cb.att.com>
  6. Sender: news@cbfsb.cb.att.com
  7. Organization: AT&T
  8. References: <1993Jan21.061448.25739@cdf.toronto.edu>
  9. Date: Thu, 21 Jan 1993 09:24:27 GMT
  10. Lines: 26
  11.  
  12. From article <1993Jan21.061448.25739@cdf.toronto.edu>, by g2chanhk@cdf.toronto.edu (Simon Ho Ki CHAN):
  13. >     Hi, is there anybody who knows how to put the EOF marker at the end of 
  14. > the last line, instead of putting it in a new line? e.g I wanna create a file 
  15. > like the following
  16. >         blah, blah
  17. >         blah, blah<EOF>
  18. >     instead of
  19. >         blah, blah
  20. >         blah, blah
  21. >         <EOF>
  22. >     Thanks for advance.
  23.  
  24. It is not possible - vi is fundamentaly a line editor - its  core is the 
  25. ex part which is a line editor which is roughly based on ed which is a line
  26. editor. 
  27.  
  28. There is no EOF marker by the way (Well not in unix anyway).
  29.  
  30. This is also the main reason why you cannot delete the newline with 'x' or 
  31. 'X' as you can in character stream oriented editors such as emacs.
  32.  
  33. Nick Hounsome
  34.