home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3670 < prev    next >
Encoding:
Text File  |  1992-08-27  |  7.0 KB  |  163 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!munnari.oz.au!manuel!csc.canberra.edu.au!news
  3. From: Kim Holburn <kim@csc.canberra.edu.au>
  4. Subject: Re: Wierd vi problem under Dynix/ptx
  5. Message-ID: <1992Aug28.010032.7140@csc.canberra.edu.au>
  6. X-Xxdate: Fri, 28 Aug 92 19:16:10 GMT
  7. Sender: news@csc.canberra.edu.au
  8. Organization: University of Canberra
  9. X-Useragent: Nuntius v1.1.1d7
  10. References: <1992Aug27.013743.1381@csc.canberra.edu.au>
  11. Date: Fri, 28 Aug 92 01:00:32 GMT
  12. Lines: 149
  13.  
  14. Thanks folks. 
  15. I'd never come across a system with the default set up, so simple it's
  16. embarassing really.
  17.  
  18. All the replies about the stty problem were similar, here's one of them:
  19.  
  20. >In article <1992Aug27.013743.1381@csc.canberra.edu.au> you write:
  21. >> On a sequent running ptx. vi does weird things with @ and # and maybe
  22. >> other letters. It treats them like some sort of control characters.
  23. >> This doesn't happen on any other system I've come across. I have to
  24. >> quote these characters with ^v in order to insert them. Is there any
  25. >> way of fixing this.
  26.  
  27. Arne Henrik Juul <arnej@lise.unit.no> wrote
  28.  
  29. My guess is, you have the erase/kill characters set to their really-awful,
  30. old default values. Try on the command line:
  31. $ stty -a
  32. (You should get some information, also about the erase/kill characters,
  33.  like this:)
  34. speed 9600 baud; line = 0; intr = DEL; quit = ^|; erase = #; kill = @;
  35. eof = ^d; eol = ^`; start = ^q; stop = ^s; susp = ^z; swtch = ^`
  36. -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk 
  37. -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc 
  38. ixon -ixany -ixoff 
  39. isig icanon -xcase echo echoe echok -echonl -noflsh -iexten -tostop 
  40. opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel 
  41. (Notice the "#" and "@" !)
  42. $ stty erase ^h
  43. (This is one useful value, also DEL is often used)
  44. $ stty kill ^u
  45.  
  46. "David A. Wagner" <dawagner@phoenix.Princeton.EDU> wrote :
  47.  
  48. >>                             I think if I need to read a manual to use a
  49. >>program then it is basically a badly written program. 
  50. >>
  51. >
  52. >    <puke>  Sorry if this sounds flamish, elistist, or obnoxious - it's
  53. >not meant that way - but, why are you using Unix then?  :-)
  54.  
  55. Well said. I use a mac most of the time actually. But I have this job :-)
  56. I should mention here that I use vi a lot. I sometimes think I live in
  57. vi. It has been postulated that there are in fact an infinite number of
  58. vi commands and we can only ever know a small fraction:-) I also have to
  59. teach vi to unix beginners on occasions. I like vi's power but I still
  60. consider it a dreadful editor because of its modality and lack of on-line
  61. help. 
  62. As for emacs, what can I say. I just recently got the source and compiled
  63. it. I did try all those things various people suggested except for the
  64. tutorial. I want to learn it I really do!! I can't see why the command
  65. for quitting the program isn't at the top of the help text. Perhaps emacs
  66. users never quit emacs. Somehow C-C didn't work on my development system
  67. (vanilla sunOS 4.1.1 mostly). As I said, I had to log in and kill it
  68. eventually.
  69.  
  70. >>
  71. >>Vi doesn't even seem to have a manual, or not one that includes it's
  72. >>editing commands.
  73. >>
  74. >
  75. >    Yeah, I agree - vi SHOULD have an online manual detailing all
  76. >it's editing commands.  So should troff, and pic, and tbl, and eq, and
  77. >... - oh wait, there I go babbling again :-)   It IS in the printed
  78. >manuals, but who looks there? :-)  There is an anonymous FTP site for
  79. >VI stuff, though:
  80. >
  81. >--------BEGIN-----------
  82. >#
  83. >#  Mostly files on vi.
  84. >#
  85. >#  Index of archive:    alf.uib.no (129.177.30.3)
  86. >#  Filearea:            /pub/lpf/misc
  87. >#  Archive maintainer:  Ove Ruben R Olsen (rubenro@viggo.blh.no)
  88. >#  Archive updated:     Thu Aug 22 18:06:23 GMT 1991
  89. >#
  90. >
  91. >In the macros/ directory there exsist macros for vi. Look at file 
  92. >macros/INDEX.
  93. >
  94. >UCB = University of California, Berkley. (Hometown of vi)
  95. >
  96. >
  97. >
  98. INDEX                 This file. *
  99. WHOandWHERE           A 'thank you' too all who have submitted to the
  100. archive.
  101.  
  102. ex.changes.Z          ex changes from version to version. UCB-dist.
  103. ex.fix.Z              An Encore ex fix.
  104. ex.reference.Z        ex Reference Manual. UCB-dist.
  105. ex.summary.Z          ex Command Summary. UCB-dist.
  106. jl.ex.ref.Z           Another reference for vi.
  107. learn-vi.tar.Z        LVI - The Learners Introduction to VI. Interactive.
  108. nvi.tar.Z             Novice VI. 
  109. shell-100.BetaA.Z     Conversion table between different shells.
  110. vi.1.Z                Vi formated manual. 
  111. vi.132.Z              A tip on using vi on vt-100 with 132 colums.
  112. vi.apwh.ms.Z          Vi Command & Function Reference. UCB-dist.
  113. vi.beiners.Z          Vi beginers guide.
  114. vi.card.tex.Z         Vi reference card in TeX. Found inside
  115. learn-vi.tar.Z
  116. vi.chars.Z            Apendix: character functions. UCB-dist.
  117. vi.course.Z           A course on using vi. Paper.
  118. vi.course.tar.Z       A course package on using vi. Paper.
  119. vi.help.Z             Vi recerence card. Found inside learn-vi.tar.Z
  120. vi.intro.Z            Introduction on Display Editing with Vi. UCB-dist.
  121. vi.intro.ps.Z         Vi.intro in PostScript format. UCB-dist.
  122. vi.macros.Z           Macros, Abbrevitations, and Buffers.
  123. vi.macroDoc.tar.Z     Two docs describing macros in vi. Sample exrc file
  124. incl.
  125. vi.man.tut.Z          VI manual-page with a tutor.
  126. vi.multfile.Z         A doc on how to work with multiple files in vi.
  127. vi.online-200.tar.Z   Vi ON-LINE HELP with 'windows for vi'. Version 2.00
  128. vi.passwd.Z           A script for "secure" editing of /etc/passwd.
  129. vi.passwd.fix.Z       A fix to vi.passwd.fix.Z
  130. vi.patch.Z            Path to fix a "security" hole in VI.
  131. vi.quick.Z            Vi Quick reference card.
  132. vi.ref.Z              UNIX VI quick reference card.
  133. vi.refchrt.Z          Vi reference chart.
  134. vi.reference.Z        Vi reference. Version 7.
  135. vi.reference.ms.Z     Vi reference for typesetters.
  136. vi.sigint.fix         A src fix for vi dealing with 'sigint'.
  137. vi.song.Z             A song about vi.
  138. vi.summary.Z          Vi / ex Quick reference. UCB-dist.
  139. vi.startup.d.Z        NetNews discussion about ex:COMMAND / vi:COMMAND
  140. feature.
  141. vi.tabs.Z             A tip on tabs in vi.
  142. vi.tags.Z             A paper on a tag-tech.
  143. vi.tagStack.Z         Patch for vaxen to make tag stack avail. Fixes for
  144. sun.
  145. vi.tips.Z             Beginer's tips on vi.
  146. vi.tutor.Z            An interactive tutor for vi.
  147. vi.ucb.tar.Z          The whole UCB-dist package. package. *
  148.  
  149. vi-buffer.el.Z        Invoke vi inside emacs. *
  150.  
  151.  
  152.  
  153. +----------------------------+-----------------------------------------+
  154. |   Kim Holburn              |   Internet : kim@csc.canberra.edu.au    |
  155. |   Computer Services Centre |                                         |
  156. |   University of Canberra   |   Phone    : (06)201 2203, (06)201 2401 |
  157. |   PO Box 1 Belconnen       |                                         |
  158. |   ACT  Australia           |   Fax      : (06)201 5074               |
  159. +----------------------------+-----------------------------------------+
  160. |     born again and again and again and again and again buddhist      |
  161. |                    well... in a previous life anyway  :-)            |
  162. +----------------------------------------------------------------------+
  163.