50 lines
3.1 KiB
HTML
50 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
|
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
|
<HEAD>
|
|
<TITLE>3.12.5 Changing text</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="3.12.5 Changing text">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html3555 HREF="node143.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3553 HREF="node137.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3547 HREF="node141.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3557 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3558 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html3556 HREF="node143.html">3.12.6 Moving commands</A>
|
|
<B>Up:</B> <A NAME=tex2html3554 HREF="node137.html">3.12 Using the vi </A>
|
|
<B> Previous:</B> <A NAME=tex2html3548 HREF="node141.html">3.12.4 Deleting text</A>
|
|
<BR> <HR> <P>
|
|
<H2><A NAME=SECTION005125000000000000000>3.12.5 Changing text</A></H2>
|
|
<P>
|
|
<A NAME=3947> </A>
|
|
You can replace sections of text using the <tt>R</tt> command. Place the
|
|
cursor on the first letter in ``party'', press <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img225.gif">, and type the
|
|
word ``hungry''.
|
|
<P><TT> <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img226.gif"> <P></TT>
|
|
Using <tt>R</tt> to edit text is much like the <tt>i</tt> and <tt>a</tt> commands,
|
|
but <tt>R</tt> overwrites text, instead of inserting it.
|
|
<P>
|
|
The <tt>r</tt> command replaces the single character under the cursor.
|
|
For example, move the cursor to the beginning of the word ``Now'', and
|
|
type <tt>r</tt> followed by <tt>C</tt>, you'll have:
|
|
<P><TT> <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img227.gif"> <P></TT>
|
|
<P>
|
|
The ``<tt>~</tt>'' command changes the case of the letter under the
|
|
cursor from upper- to lower-case, and vise versa, For example, if you
|
|
place the cursor on the ``o'' in ``Cow'', above, and repeatedly press
|
|
<IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img228.gif">, you'll end up with:
|
|
<P><TT> <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img229.gif"> <P></TT>
|
|
<A NAME=3953> </A>
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html3555 HREF="node143.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3553 HREF="node137.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3547 HREF="node141.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3557 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3558 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html3556 HREF="node143.html">3.12.6 Moving commands</A>
|
|
<B>Up:</B> <A NAME=tex2html3554 HREF="node137.html">3.12 Using the vi </A>
|
|
<B> Previous:</B> <A NAME=tex2html3548 HREF="node141.html">3.12.4 Deleting text</A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|