Changed the inreplace, I think it's a more elegant approach.

As for hard tabs, I've just recently gotten comfortable with Vim, but I'm not fully versed in it yet, maybe that's causing the issue. It seems to be fine on my end, but I could be mistaken. Apologies for that.