35
16
Say I have a block of text like this:
// Comment1 // Comment2 // Comment3
And I want to append each of these lines to the end of 3 corresponding lines of code:
foo = 1; bar = 2; baz = 3;
So that the end result is
foo = 1; // Comment1 bar = 2; // Comment2 baz = 3; // Comment3
Is there an easy way to do this in Vim?
The better community for this question is https://vi.stackexchange.com/
– thinwybk – 2018-11-23T15:08:52.503@Flimzy, unfortunately no. From time to time comments like yours appear in Vim questions, but check this: http://meta.stackexchange.com/q/25925/160504
– sidyll – 2011-06-21T18:26:59.130