home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume6 / help / part2 / help.dir / vi / commands / other_commands.HLP < prev   
Encoding:
Text File  |  1986-11-30  |  907 b   |  38 lines

  1.  
  2.     Here is a list of other useful commands for vi.  For
  3.     a comprehensive list of commands, see the "VI QUICK
  4.     REFERENCE" card.
  5.  
  6.     :wq    write and quit
  7.     :e xxx    edit file 'xxx'
  8.     :sh    run a subshell
  9.     
  10.     n    repeat last search
  11.     N    repeat last search but in opposite direction
  12.     %    find matching brace or parenthesis
  13.     )    forward to next sentence
  14.         or to next s-expr (lisp option)
  15.     (    backward sentence
  16.         or back s-expr (lisp option)
  17.     
  18.     ''    back to previous location
  19.     mX    mark this spot with letter 'X'
  20.     'X    go back to spot marked with 'X'
  21.  
  22.     J    join this line and next
  23.     D    delete to end of line (same as d$)
  24.     X    delete character before cursor
  25.  
  26.     >    left shift operator
  27.     <    right shift operator
  28.     !    filter thru command operator
  29.             
  30.     :[addr1,addr2]s/pattern/replacement/[option]
  31.         general pattern-match replacement (see ed(1) and ex(1))
  32.  
  33.     :r fn    read file "fn" into buffer
  34.     
  35.     :[addr1,addr2]d
  36.         delete everything between addr1 and addr2
  37.         
  38.