->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]\>

Please notify owners of webpages with outdated links to these pages

Find this site useful? Want to give something back?

© 1993-2001 Christopher C. Taylor