home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / Documents / Others / viCourse+ / OnLineHelp.txt < prev    next >
Text File  |  1993-01-25  |  15KB  |  418 lines

  1. "                       VI ON-LINE HELP SYSTEM 
  2. "                       """"""""""""""""""""""
  3. "      Copyright (C) by Ove Ruben R Olsen (rubenro@viggo.blh.no)
  4. "                       All rights reserved
  5. " The author is NOT responsible for any damage this package may make.
  6. "
  7. "
  8. " Unmap the temporary mappings.
  9. " remap q
  10. " remap g 
  11. "
  12. unmap O
  13. unmap U
  14. unmap W
  15. unmap A
  16. unmap E
  17. unmap D
  18. unmap F
  19. unmap R
  20. unmap X
  21. map g 'h
  22. map q :rew:map q u'h
  23. vi-online/vi.help   755  47103   4231       17163  5042163772   7447 ###############################################################################
  24. #                                                              Version: 1.01
  25. #                      VI ON-LINE HELP SYSTEM
  26. #      Copyright (C) by Ove Ruben R Olsen (rubenro@viggo.blh.no)
  27. #                       All rights reserved
  28. # The author is NOT responsible for any damage this package may make.
  29. # See the file 'olh' for more information about this system.
  30. #
  31. # TO START THE ON-LINE HELP:
  32. #   Type 'g' to go. After a little while type 'q' to exit back to your
  33. #   original file. Type ^H to get help while editing.
  34. #
  35. #   This help is aimed a starters. Some key's have been remapped.
  36. #
  37. # CREDITS:
  38. #   'Vi Reference'                                by Maarten Lithmaath
  39. #   'Vi Macros, Abbreviations and Buffers'        by Fred Buck
  40. ##############################################################################
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. --> 29
  48. ###############################################################################
  49. # VI ON-LINE HELP SYSTEM  Moving around.
  50. #
  51. #                    LEFT    RIGHT   #                             UP   DOWN
  52. #                                    #
  53. #  Character            h        l   #   Line                       k      j 
  54. #  Find character       F        f   #   Beginning of line          -      +
  55. #  Till after char.     T        t   #   To line from TOP/BOTTOM    H      L 
  56. #  Begining of word     b        w   #   Screen                    ^B     ^F
  57. #  Begining of WORD     B        W   #    
  58. #  End of word                   e   #   Mark a place               m<a-z>   
  59. #  End of WORD                   E   #   Move to a marked place     '<a-z>
  60. #  Sentence             (        )   #   Find next bracket          %
  61. #  Paragraph            {        }   #   
  62. #  Whole Line           0        $   #
  63. #  Repeat last fFtT     ,        ;   #   See also: Finding text. ^F
  64. #                                    #
  65. ###############################################################################
  66.  
  67. --> 49
  68. ###############################################################################
  69. # VI ON-LINE HELP SYSTEM  Entering text.
  70. #
  71. #  End all command bellow with <esc>
  72. #                                 
  73. #  Append after cursor           a   #  Change from curs. to <m> (CHAR)    c<m>
  74. #  Append after end of line      A   #  Change from curs. to <m> (LINES)  cc<m>
  75. #  Insert before cursor          i   #  Change rest of line                C
  76. #  Insert at beginning of line   I   #  Switch upper/lower case            ~
  77. #  Open a new line below line    o   #  Join lines                         J
  78. #  Open a new line above line    O   #  Repeat last command                .   
  79. #  Put a buffer bellow line      p   #  
  80. #  Put a buffer above line       P   #   <m> can be any of the characters 
  81. #  Replace characters            r   #   in the Moving around sectionn. ^M
  82. #  Overite the rest of line      R   #   
  83. #  Substitue characters          s   #  
  84. #  Substitue the rest of line    S   #   See also: Moving around ^M
  85. #                                    #
  86. ###############################################################################
  87. --> 69
  88. ###############################################################################
  89. # VI ON-LINE HELP SYSTEM  Deleting text.
  90. #
  91. #   Delete chart after cursor    x     #
  92. #   Delete chars before cursor   X     # 
  93. #   Delete form cursor to <m>    d<m>  #   <m> can be any of the characters 
  94. #   Delete lines                 dd    #   in the Moving around section. ^M
  95. #   Delete to rest of line       D     #
  96. #   Repeat last command          .     #   See also: Moving around ^M
  97. #                                      #
  98. ###############################################################################
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. --> 89
  108. ###############################################################################
  109. # VI ON-LINE HELP SYSTEM  Finding and Replace text.
  110. #
  111. #   Search a string forwards     /string
  112. #   Search a string backwards    ?string
  113. #   Repeat last /,?              n
  114. #   Opposite to n                N
  115. #   
  116. #   Search and substitue:        :x,y s/SEARCH/REPLACE/g
  117. #      
  118. #      Where x and y are fileadresses, and the string SEARCH will be
  119. #      replaced with REPLACE.
  120. #
  121. #      EXAMPLE:  replace all 'Moveing' with 'Moving' in the current file:
  122. #                :1,$ s/Moveing/Moving
  123. #
  124. ###############################################################################
  125.  
  126.  
  127. --> 109
  128. ###############################################################################
  129. # VI ON-LINE HELP SYSTEM  Yanking text.
  130. #
  131. #  Yank from begging to <m>        y<m>    #  <m> can be any of the characters 
  132. #  Yank lines                      yy      #  in the Moving around section. ^M
  133. #  Yank current line               Y       #
  134. #  Mark cursor possition           m<a-z>  #
  135. #  Fins marked cursom possition    '<a-z>  #  See also: Moving around. ^M
  136. #                                          #
  137. ###############################################################################
  138.  
  139.  
  140.  
  141.   
  142.  
  143.  
  144.  
  145.  
  146.  
  147. --> 129
  148. ###############################################################################
  149. # VI ON-LINE HELP SYSTEM  Undoing changes.
  150. #
  151. #   Undo latest change                u
  152. #   Undo all changes on a line        U
  153. #   Restart editing current file      :e!
  154. #   Quit vi without writing           :q!
  155. #
  156. ###############################################################################
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167. --> 149
  168. ###############################################################################
  169. # VI ON-LINE HELP SYSTEM  Some ex commands.
  170. #
  171. #  Quit vi unless change         :q      #  Next file                    :n
  172. #  Quit vi without saving        :q!     #  Rewind filelist              :rew
  173. #  Write file                    :w      #  Rewind filelist w/o saving   :rew!
  174. #  Write to file <fn>            :w <fn> #
  175. #  Overwrite file <fn>           :w <fn> #  Switch to ex                 Q
  176. #  Write and quit                :wq     #  Switch to vi                 :vi
  177. #  Stronger write and quit       :wq!    #
  178. #  Same as :wq  and  wq!         :x  :x! #
  179. #  Edit alternate file           :e      # 
  180. #                                        #
  181. ###############################################################################
  182.  
  183.  
  184.  
  185.  
  186.  
  187. --> 169
  188. ###############################################################################
  189. # VI ON-LINE HELP SYSTEM  Miscanselous info.
  190. #
  191. #   Some of these commands may not work when you have this help system.
  192. #
  193. #  Save and quit vi (:wq!)        ZZ   #   Scroll downwards          ^D
  194. #  Status information             ^G   #   Scroll upwards            ^U
  195. #  Refresh screen                 ^L   #   Start a shell             :sh
  196. #  Expose more lines at bottom    ^E   #   Pass file-adresses to a 
  197. #  Expose more lines at top       ^Y   #   external program <prg>    :x,y!<prg>
  198. #
  199. ###############################################################################
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207. --> 189
  208. ###############################################################################
  209. #                                                              Version: 1.01
  210. #                      VI ON-LINE HELP SYSTEM
  211. #      Copyright (C) by Ove Ruben R Olsen (rubenro@viggo.blh.no)
  212. # The author is NOT responsible for any damage this package may make.
  213. # USAGE:
  214. #   To get help press the key for desired help. Eg. CTRL-H will give you
  215. #   this helpscreen. To quit the man-page press q.
  216. #    
  217. # HELP-PAGES: 
  218. #
  219. #  ^H - This page.                 ^R - Remebering text (Yanking).
  220. #  ^A - Moving around.             ^T - Finding and replace text.
  221. #  ^E - Entering text.             ^O - Miscanselous info.
  222. #  ^N - Deleting text.             ^X - Some ex commands. 
  223. #  ^U - Undoing changes. 
  224. #   Nearly all vi commands may take a numeric argument
  225. ##############################################################################
  226.  
  227.  
  228.  
  229.      '<a-z>
  230. #  Sentence             (        )   #   Find next bracket          %
  231. #  Paragraph            {        }   #   
  232. #  Whole Line           0        $   #
  233. #  Repeat last fFtT     ,        ;   #   See also: Finding text. ^F
  234. #                                    #
  235. ###############################################################################
  236.  
  237. --> 49
  238. #######################################vi-online/vi.olh   755  47103   4231        5155  5042163734   7255 "                       VI ON-LINE HELP SYSTEM 
  239. "                       """"""""""""""""""""""
  240. "      Copyright (C) by Ove Ruben R Olsen (rubenro@viggo.blh.no)
  241. "                       All rights reserved
  242. " Version: 1.01, Sun Jul 21 02:58:49 MET DST 1991
  243. "
  244. " The author is NOT responsible for any damage this package may make.
  245. "
  246. " You may freely distribute this system as long as you don't get
  247. " paid for doing so. 
  248. " All copyright info on all files should be intact.
  249. "
  250. " You are may NOT change this files without mailing the author
  251. " your changes for inclusion in later editions/versions.
  252. "
  253. " Please mail all bug-reports, suggestions et.al to rubenro@viggo.blh.no
  254. "
  255. " You may find this package on anon. ftp: alf.uib.no (129.177.30.3)
  256. "    pub/lpf/misc/vi.online-100.tar.Z 
  257. "
  258. "
  259. " CREDITS:
  260. "
  261. "   'Vi Reference'                                by Maarten Lithmaath
  262. "   'Vi Macros, Abbreviations and Buffers'        by Fred Buck
  263. "
  264. "
  265. "
  266. " INSTALLATION:
  267. "
  268. "    Copy the files  vi.{olh,ende,help} to /usr/local/lib.
  269. "    If you don't want them there, change the path. No need to mailing the
  270. "    author for this.
  271. "
  272. "    Put   map  :source /usr/local/lib/vi.olh   in your ~/.exrc or your
  273. "    EXINIT or other places where you need the vi online manual.
  274. "    Everytime you hit CTRL-H in command mode you will load the help-system.
  275. "
  276. "    When entering ^H or other controll characters in vi, type ^V before
  277. "    you enter your controll char.
  278. "
  279. "    After doing this you are ready to use the on-line help system
  280. "
  281. "
  282. "
  283. " THIS SYTEM WORKS ON:
  284. "
  285. "    SunOS 4.1.1    - 4/75
  286. "    HP-UX A.B7.00  - B9000/825 /834
  287. "    bsd 4.3        - Unknown
  288. "  
  289. "
  290. "
  291. " HOW THIS WORKS:
  292. "
  293. "    The 'g' macro start's it all after first reading inn the helpfile.
  294. "    It works like this: Yank the differenct sections into different
  295. "    buffers. Map various controll-keys to display various sections.
  296. "
  297. "    After assiging to different buffers, we source the file vi.ende to 
  298. "    get rid of the various temporary mappings.
  299. "
  300. set remap redraw 
  301. map g 190GW30GA50GE70GD90GF110GR130GU150GX170GOq1G
  302. "
  303. " Temporary mappings.
  304. "
  305. map W "h23yy
  306. map A "m18yy
  307. map E "e19yy
  308. map D "d11yy
  309. map F "f17yy
  310. map R "r10yy
  311. map U "u9yy
  312. map X "x14yy
  313. map O "o12yy
  314. "
  315. "
  316. " Controll key mappings.
  317. "
  318. map  mhH"hP
  319. map  mhH"mP
  320. map  mhH"eP
  321. map  mhH"dP
  322. map  mhH"fP
  323. map  mhH"rP
  324. map  mhH"uP
  325. map  mhH"xP
  326. map  mhH"oP
  327. "
  328. "
  329. " To end it all.
  330. " You may change the path without mailing the author.
  331. "
  332. map q :source /usr/local/lib/vi.ende
  333. "
  334. "
  335. " Write current file and load the helpfile.
  336. "
  337. " You may have to change the path to the helpfile.
  338. " You are allowed to do so without mailing the author.
  339. "
  340. w!
  341. e! /usr/local/lib/vi.help
  342. "
  343.  .   
  344. #  Put a buffer bellow line      p   #  
  345. #  Put a buffer above line       P   #   <m> can be any of the characters 
  346. #  Replace characters            r   #   in the Moving around sectionn. ^M
  347. #  Overite the rest of line      R   #   
  348. #  Substitue characters          s   #  
  349. #  Substitue the rest of line    S   #   See also: Moving around ^M
  350. #                                    #
  351. ################ers 
  352. #  Yank lines                      yy      #  in the Moving around section. ^M
  353. #  Yank current line               Y       #
  354. #  Mark cursor possition           m<a-z>  #
  355. #  Fins marked cursom possition    '<a-z>  #  See also: Moving around. ^M
  356. #                                          #
  357. ###############################################################################
  358.  
  359.  
  360.  
  361.   
  362.  
  363.  
  364.  
  365.  
  366.  
  367. --> 129
  368. ###############################################################################
  369. # VI ON-LINE HELP SYSTEM  Undoing changes.
  370. #
  371. #   Undo latest change                u
  372. #   Undo all changes on a line        U
  373. #   Restart editing current file      :e!
  374. #   Quit vi without writing           :q!
  375. #
  376. ###############################################################################
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387. --> 149
  388. ###############################################################################
  389. # VI ON-LINE HELP SYSTEM  Some ex commands.
  390. #
  391. #  Quit vi unless change         :q      #  Next file                    :n
  392. #  Quit vi without saving        :q!     #  Rewind filelist              :rew
  393. #  Write file                    :w      #  Rewind filelist w/o saving   :rew!
  394. #  Write to file <fn>            :w <fn> #
  395. #  Overwrite file <fn>           :w <fn> #  Switch to ex                 Q
  396. #  Write and quit                :wq     #  Switch to vi                 :vi
  397. #  Stronger write and quit       :wq!    #
  398. #  Same as :wq  and  wq!         :x  :x! #
  399. #  Edit alternate file           :e      # 
  400. #                                        #
  401. ############################files .
  402. #.
  403. #..arouaroua
  404. "re yon a.
  405. #