If the number n is left off, the command only applies to one object. S newtext ESC Clear current line and replace with newtext . S newtext ESC Clear n lines, starting at current line, and replace with newtext . C newtext ESC Replace characters from current cursor location to end of line with newtext .
Text is entered in insert mode.
Relocating Text Text can be relocated by first yanking into a buffer. Y Yank current line into temporary buffer. Unlike d, line is not deleted. Yank current line and the following n-1 lines into temporary buffer. Unlike d, lines are not deleted.