I've recently disentangled from a quasi-relationship/strange co-dependent friendship in which I was gaslit on occasion. It wasn't often but would happen after conflict, usually in the form of history being re-written so he was blameless about everything and everything was my fault. More likely though it was just passive aggressive - saying things were fine when they clearly weren't etc.
Most recently, he tried to tell me that he did a thing in response to and because of something I had done first, but I am certain it was the other way around. He was so sure though I started to question myself and even went back to check, and I am glad I did as I was right.
Do people do this on PURPOSE though or is their narrative just completely messed up and wrong?