copy this line : for (;i<v.size()-1;i++) { and paste it at the same position generates : for (;i<v.s for (;i<v.size()-1;i++) { ize()-1;i++) { while in vim it pastes to a new line
Seems to be fixed on 5.73.0 (I don't know on which specific version it was fixed)
Upon further inspection, this seems to work for the normal delete line and yank line (dd, yy), but the behavior you describe appears when using (numbered) registers.
Pasting the given line in normal (non-vi) mode and in vimode results to the same output in the lates dev version of kate. Please feel free to reopen if you still experience the bug, preferrably with another example.