LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2013, 10:45 AM   #1
lightthievesall
LQ Newbie
 
Registered: Dec 2010
Location: Boston
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
incorrect/overwritten margins when using vim in GNU screen


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?
 
Old 06-06-2013, 02:44 PM   #2
lightthievesall
LQ Newbie
 
Registered: Dec 2010
Location: Boston
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
It was PuTTY, I had "Implicit CR in every LF" checked by default and that was the culprit. Screen was a red herring.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU screen/Vim key binding conflict lucmove Linux - Software 5 06-10-2013 01:55 AM
Screen Margins shevek Linux - Desktop 2 02-06-2008 04:01 PM
GNU/Linux reporting incorrect free space on external drive gnurza Linux - Newbie 4 10-31-2007 07:24 PM
screen margins in KDE omnio Linux - Desktop 3 07-22-2007 02:53 AM
HP Deskjet Printer, page margins incorrect.... hollywoodb Linux - Hardware 2 12-09-2006 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration