I'm experiencing troubles with vim and the autoindent mode. I have set up autoident, paste, smartindent and a lot of more options I have seen on stackoverflow's answers, but don't get the solution.
My problem is that when pasting code, the first line of the code is not leading the rest of the block indentation. Will explain it with two pictures:
This is my code. I will paste on line 53:

When I paste the code, only the first line is indented in the place I had the cursor (line 53):

And this is the result I was expecting:

How could I get the same indentation as in image 3? Thank you in advance!