Whenever I paste into vim it comes out all garbled

When pasting into vim the entry does not appear as the source it was copied from. Spacing is usually the biggets problem.

Related tags: Linux

Credit: Original Poster

Before you paste your text into vim hit esc then type

:set paste

Then go to insert mode (press i) and paste away. It should now be formatted correctly.

Rating: 1

Propose a different solution...