next up previous contents
Next: Finding/Replacing a String Up: Basics Previous: Cut Copy Paste

Error Correction

There are a number of ways of correcting mistakes. The transposition commands mentioned previously are very useful. If you type thie instead of thei, you can use C-t to transpose the two previous characters and correct your mistake, and continue typing their which will now be correctly spelled. Also, M-t will transpose the two words to the left and right of the cursor, and M-T will likewise transpose two sentences. So, for example, if your text looks like

This is a silly sentence.  Word transposition is easy.
                         ^
where the cursor location is indicated by ^, then pressing M-t will result in
This is a silly Word.  sentence transposition is easy.
whereas pressing M-T would instead result in
Word transposition is easy.  This is a silly sentence.
and if your text looks like
This is a silly sentence.
Word transposition is easy.
where the cursor is located anywhere on the second line, then pressing C-M-t ( CONTROL & META & t), the will be
Word transposition is easy.
This is a silly sentence.