Maybe I am being daft but can you replace all the characters from where the cursor is to the end of line by one command? Then use . to do the same replace on the next line and so on.
|
If I understood your question properly, try this: C will delete everything from the cursor to the end of the line and put you in INSERT mode, then you write your replacement, leave INSERT mode, use . to repeat the process somewhere else. |
|||||
|
|
|
Adding to sr_'s answer: If your cursor starts at the same position on each line, you might be interested in the Visual Block feature. Type the following in order, with your cursor in the initial position:
This should create a rectangular selection going from your cursor on the first line to the end of the line [X] lines below. You can then replace your whole selection:
I use visual block whenever I can, I thought I'd share |
|||
|
|
C or c$ is for "change" and R is for "replace". Two almost similar behavior. The former would get the line deleted before you start typing; while the latter would let you type over the characters and possibly go beyond the limit of the old line's characters displayed. |
|||
|
|
|
Just press 'C' i.e. Capital C in the command mode, and type the replacement text. |
||||
|
|
|
The other answers missed these, they don't enter insert mode.
Then of course use . |
|||
|

