Press the ESC key when it is called for in the above commands. CTRL- represents the CTRL key. Hold the CTRL key and press the following key simultaneously. A append at the end of the current line. Text deleted with D and dd commands may be pasted back with the P command.
Text is pasted in before the cursor position.
From line number 'a' to line number 'b', substitute the pattern 'old' with the pattern 'new'. You may use any text string which doesn't contain a carriage return in place of the 'old' and 'new' strings. Use CTRL-G to tell what line the cursor is on. The vi editor works on a copy of your file. Cut and Paste Move to the begining of the text to cut.