When ssh'd into a work server via PuTTY I'm seeing strange behavior with the left margins when using GNU screen and vim. For example, I'll open up a Python script and all indentations will be gone i.e.
Code:
def __init__(self):
self.name = str(self.__class__.__name__)
self.nestables = None
self.attributes = {}
and not
Code:
def __init__(self):
self.name = str(self.__class__.__name__)
self.nestables = None
self.attributes = {}
However if I scroll down one line at a time newly appearing lines on screen will have proper indentation. I see similar behavior in htop, with the left margin getting overwritten or being indented incorrectly.
I figure there's a termcap/terminfo setting I can put in my .screenrc but everything I've tried so far has not worked.
I see this both in Debian 7 and CentOS 6.
Anyone else encountered this before?