->Title Page
->Intro
->Unix
->Vi editor
-->Basics
-->Vi reference
-->Miscellaneous tips
--->Line deletions
--->Switching cases
--->Spell checking
->Advanced S and R
--->Blank lines
--->Buffers
->Mirror sites
->Further reading

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

Vi ---> Advanced search and replace

To change

Gravity isn't just a "good idea."  It's the "law."
to
Gravity isn't just a ``good idea.''  It's the ``law.''
type


    :g/$/s/"\([^"]*\)"/``\1''/g
The following will find words that begin and end with a vowel:


    /\<[aeiouAEIOU][a-zA-Z']*[aeiouAEIOU]\>

Site Statistics

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