Vim is adding lots of spaces and newlines when copy / pasting. This is what it looks like:
How do I fix this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
you probably have vim's autoindent mode on. try turning it off with
also, as mentioned by CR above,
:set paste greatly improves vim's behaviour while pasting text into it...with paste mode set you don't need to mess around manually setting text-width, wrap-margin or anything else likely to mess up long lines or text spacing. remember to use
:set nopaste when you've finished pasting.