Pasting into vim from GUI results in missing lines

Just make sure that when pasting to vim, the Insert Mode is activated. Do this by pressing i before pasting.

Otherwise pasted characters like i or o will trigger insert mode and you'll miss everything before.