vi - How can I prepend text in the middle of the line to multiple lines in Vim? -
Say I have ten lines and I want to include some words in the words in that text? It is not at the beginning of the line.
To:
sdfsd foo sdfsd sfsd foo fsdf sdfsdf foo sdfsdf
For:
< Code> sdfsd bar (foo sdfsd sfsd bar) (foo fsdf sdfsdf bar) (foo sdfsdf
Is this the only bar (
but actually foo
with bar (foo)
I also would like a quick way to add text "itemprop =" text "> before Press <, Kbd> Ctrl - v to insert on E, marking all affected lines Go to Top / Down and then press Termination or $ to extend selection until the end of the line - i < With / kbd> Like, you can now press Shift - a to attach to the end of all lines, Kbd>. Scene selection can also be done with orders of general movement. To make a complete block comment in C, you open the error and type Ctrl - v % Shift Can go - i / / esk .
foo
Go, Ctrl - v enter the visual block mode and press down until all the rows marked with foo
, Then press Shift - i to enter the start (block) and press Esc , to the left of the marked block The inserted letters will be added to each row.
Comments
Post a Comment