So let's say I have the following code:
if (true) {
// do stuff
// do additional stuff
}
I open up vim in PuTTY and right click to paste the above code into vim and it gets pasted like this:
if (true) {
// do stuff
// // do additional stuff
// }
It's like it's auto-indenting every time a new line is encountered and the additional tabs just indent it that much further. And it also seems to be assuming that if the previous line was a comment that the next line will be one as well.
Even if I wasn't trying to copy / paste into vim it's not behavior I like but, the fact that I am makes the input barely usable.
Is there any way to disable this behavior?
Thanks!
:set paste
, orset nopaste
to undo