to insert the same text inside several lines in one particular line <ctrl>
+ <v>
to select the line and then <shift>
+ <i>
to insert a texte BEFORE the particular column. Is there a way to do the same but insert a text AFTER the particular column, at the end of lines of same length instead of using 10,12s/$/pattern_to_be_inserted/gc
?
1 Answer
Select visual block, press
$A
and add text -- it would be added to the ends of all lines in that visual block.Select visual block, press
A
and add text -- it would be added to the end of the block for each line.
-
Ok ... I have to wait 7 minutes to accept your answer. You were to quick! ;) Remind me if I forget– ecjbCommented Jan 30, 2022 at 15:23
-
A
, e.g.Ctrl-V jj$
thenA
and add some text...