I have a list of items where I want to replace the first two characters:
a) item 1 b) item 2 c) item 3 What is the fastest way to make this:
* item 1 * item 2 * item 3 I have an approach with visual mode (Ctr-v, jjj, but need to do two replace commands. Iirc, this replacement can be done with 1 command)
.,.+2s/^../*/(or equivalently in a visual selection)? Why two replace commands?2cwould replace two characters.Ctrl-Cinstead ofEsc? This prevents, among other things, changes being applied to each line of a Visual-block selection.