->Title Page
->Intro
->Unix
->Vi editor
-->Basics
-->Vi reference
--->Move commands
--->Search
--->Undo
--->Insert
--->Delete
->Change
--->Substitution
--->Yanking
--->Insert mode
--->Display commands
--->Files
--->Macros
--->Shell commands
--->Vi Startup
--->Important options
-->Miscellaneous tips
->Mirror sites
->Further reading

[ Up ]
[Prev][Home][Next]
[Author]

Vi ---> Changing text

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.

Site Statistics

This section is based on "Vi Reference" by Maarten Litmaath et al.

Find this site useful? Want to give something back?

t a y l o r@l i n u x a v e.n e t

© 1993-2000 Christopher C. Taylor