You are not logged in.

#1 2012-06-03 07:04:36

DrKillPatient
Member
Registered: 2011-07-28
Posts: 85

Vim display errors in tiling terminals

EDIT: One issue is still persisting. When I open a file in Vim (console, not GVim), Vim will start with the top line of the tiled terminal aligned with, say, line 7 of the document, but displays the document as if it's in a normal orientation. When I edit a line, the text will sometimes go back to normal as I go along, but it's initially very irritating (although if I create a new terminal or resize anything, it will often move back to its "normal" mode of display). What can be done about this?


-- Old post --

Regardless of the tiling window manager I use (I've tried i3 and xmonad so far), when I open a terminal in a tiling WM, strange things tend to happen with the text in those terminals. For instance, if I get enough  text to get to the bottom of the terminal (at which point it would normally scroll down), the last line just gets overwritten repeatedly. Sometimes the line that I'm editing in Vim will obtain the appearance of the line above it, despite really being... itself. Whenever I modify that screwed-up line, it seems to gain the appearance of random scrambled parts of the rest of the document. Finally, Vim does not scale to the size of the terminal, and the last letters, if they reach the 80th place, are doubled (screenshot below, in thumbnail form). I've tried both xterm and urxvt, so it's not terminal-related, I think. In addition, none of these errors occur in floating mode. What can I do to fix this?

Note that this screenshot of one terminal window was cropped out of a screenshot of the whole desktop, so you can see a bit of the areas to the left and right-- that's not a graphical error.
36517_thumb.png

Last edited by DrKillPatient (2012-06-08 05:21:21)

Offline

#2 2012-06-03 07:19:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Vim display errors in tiling terminals

Are you setting $TERM in one of your shell files? It looks like this is b0rked somewhere...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-06-03 08:11:26

MinimalBoot
Member
Registered: 2012-05-01
Posts: 38

Re: Vim display errors in tiling terminals

What's in your ~/.Xdefaults ?

Last edited by MinimalBoot (2012-06-03 08:11:48)

Offline

#4 2012-06-03 08:29:19

DrKillPatient
Member
Registered: 2011-07-28
Posts: 85

Re: Vim display errors in tiling terminals

MinimalBoot wrote:

What's in your ~/.Xdefaults ?

That was the key! I ended up switching my ~/.Xresources  out with a completely new one, and I narrowed the problem down to the geometry setting. I had it set to 80x25, and removing the setting entirely allows it to be dynamically adjusted by the WM (as I understand it). I'll mark this as solved.

Last edited by DrKillPatient (2012-06-03 08:29:52)

Offline

#5 2012-06-08 05:18:16

DrKillPatient
Member
Registered: 2011-07-28
Posts: 85

Re: Vim display errors in tiling terminals

Un-[SOLVED] this post, as the Vim problem continues to occur. Please see my edit in the first post for a full description.

Offline

#6 2012-06-08 06:22:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Vim display errors in tiling terminals

jasonwryan wrote:

Are you setting $TERM in one of your shell files? It looks like this is b0rked somewhere...

You should also check you have the correct terminfo for whatever TERM you are using...

I set geometry in my .Xresources and it works as expected: only when in floating mode.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-06-08 14:28:03

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Vim display errors in tiling terminals

I am new to vim myself so I might be way off base here, what do you have 'set textwidth=' set to in your .vimrc?

Offline

Board footer

Powered by FluxBB