The system pasteboard contains the following content.
home
help
variables
vi compatibility
modelines
word&line completion
searching
text selection
markets
indenting
reformatting
I want to copy the file into the following format.
home
help
variables
vi compatibility
modelines
word&line completion
searching
text selection
markets
indenting
reformatting
Excuse me, is there any way to be lazy?
The first time the cursor is at the beginning of the line, the result of using "+p to paste
home
help
variables
vi compatibility
modelines
word&line completion
searching
text selection
markets
indenting
reformatting
The second time the cursor is in the fifth column, use "+p to paste the result
home
help
variables
vi compatibility
modelines
word&line completion
searching
text selection
markets
indenting
reformatting
Can I paste it like this at once?
The result of the first paste, run %s/^/ /g
The result of the second paste, run 1, $s/^/ /g
can get the following results, I think I achieved this result just once by being lazy. Can I do it?
home
help
variables
vi compatibility
modelines
word&line completion
searching
text selection
markets
indenting
reformatting
:set ai
then
i
tab
Ctrl-v
"+pVG>
Try setting it to automatic indentation
:set paste
First use shift+v to select one line, then press j to select multiple lines downwards, and finally shift + >, I don’t know if this is what you want.