"0 should have the contents of your yank. It's a little more tedious for input, but "0p should do what you want.
Alternatively, do not select or replace old lines in front. If you find these search strings, just press n. over and over (after the initial p ), then when they are all inserted, do ndd and then as many n. as possible n. .
The biggest mental switch I need to make when you move to Vim is to figure out how to apply group changes sequentially. That is, instead of doing a bunch of edits on the line, and then doing a bunch of the same changes on another line, I will do the first edit on a bunch of lines (with a lot of use of the effect . ), Then the second edit on many lines, etc. . Alternatively, using macros can help because they are fantastic, but sometimes a little more tedious to work correctly with "complex" changes.
dash-tom-bang Aug 23 '11 at 17:20 2011-08-23 17:20
source share