I'm familiar with vertical blocks, and I often ctrl+v
down
down
down
shift+I
foobar
esc
to write foobar in various locations at once.
This is useful if I want to replace <td>
to <th>
in a chain, for instance.
Since not all the text blocks are of equal size, I don't know how to do the same for </td>
to </th>
. I can think of selecting multiple lines as I did earlier, move to the end of the line with shift+a
, maybe, move one to the left, delete a character with x
, and type my h
, but I don't know how to move my position(s) when I am in visual block mode.
Is there a way to select a position as active, and move as I usually would with my marker, choosing where to write?
In SublimeText3 I would do something like ctrl+d
to select the cases I'm looking for (skipping with ctrl+k+d
if necessary), moving to the end-of-line with end
(home
for the beginning of the line), and then moving with the arrow keys (alternatively with ctrl
+arrow keys).
An example scenario:
<tr>
<th>Language</th>
<th>Oral</th>
<th>Written</th>
<th>Diplomas</th>
<th>Notes</th>
</tr>
which I want to be
<tr>
<td>Language</td>
<td>Oral</td>
<td>Written</td>
<td>Diplomas</td>
<td>Notes</td>
</tr>