 
   
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
![[ Up ]](icons/tube-up.gif)  
![[Prev]](icons/tube-prev.gif) ![[Home]](icons/tube-home.gif) ![[Next]](icons/tube-next.gif)  
![[Author]](icons/tube-author.gif)  | 
	  
End changing text with <esc>
 
 
     * | r<char>            | Replace <*> chars by <char> - no <esc>.
     * | R                  | Overwrite the rest of the line,
                            |   appending change <*> - 1 times.
     * | s                  | Substitute <*> chars.
     * | S                  | <*> lines.
     * | c<move>            | Change from begin to endpoint of <*><move>.
     * | cc                 | <*> lines.
     * | C                  | The rest of the line and <*> - 1 next lines.
     * | =<move>            | If the option `lisp' is set, this command
                            |   will realign the lines described by <*><move>
                            |   as though they had been typed with the option
                            |   `ai' set too.
     - | ~                  | Switch lower and upper cases
                            |   (should be an operator, like `c').
     * | J                  | Join <*> lines (default 2).
     * | .                  | Repeat latest command <*> times (`J' only once).
     - | &                  | Repeat latest `ex' substitute command, e.g.
                            |   `:s/wrong/good'.
     - | :[x,y]s/<p>/<r>/<f>| Substitute (on lines x through y) the pattern <p>
                            |   (default the last pattern) with <r>.  Useful
                            |   flags <f> are `g' for `global' (i.e. change
                            |   every non-overlapping occurrence of <p>) and
                            |   `c' for `confirm' (type `y' to confirm a
                            |   particular substitution, else <cr>).  Instead
                            |   of `/' any punctuation CHAR unequal to <lf>
                            |   can be used as delimiter.
This section is based on  "Vi Reference" by Maarten Litmaath et al.
Find this site useful?  Want to give something back?
© 1993-2000 Christopher C. Taylor 
         |