0

I paste into the gedit text editor and that' s ok (on the left).

But when I paste into vim (on the right) i get the weird 'too much indenting' issue. Also it's not immediately fixable with selecting all text and using =

This for python code btw, i will check ruby now - done, ruby doesn't have issue, but then again ruby outdents with ends anyway so different approach in that language anyway.

enter image description here

2

When you open up vim type the following

:set paste

and when before you exit

:set nopaste

You might also check the top answer in this post

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.