Display problem with ghci (:e) and vim

Hello! I've noticed an odd display problem with ghci and vim. The problem occurs with ghci-6.6 and vim-6 on Mac OS X 10.4.9 (Terminal.app and uxrvt in X11.app) and with ghci-6.2.2, ghci-6.6.1 and vim-7.0 on OpenBSD 4.1 (via PuTTY from Windows). 1 - Resize your terminal window to 40 lines. 2 - Start ghci. 3 - :set editor vim 4 - :edit File.hs (pick an existing file) Vim doesn't display the file contents properly in the bottom half of my terminal window (it doesn't display parts of the file). But it does correctly display the : command line at the bottom of the screen. Refreshing the display with Ctrl-L does not help. Infact, it makes things worse in some cases. Resizing the window with the mouse, or by typing resize, or by export LINES=40 does not help either. I don't see this problem under any of these configurations if I use hugs instead of ghci. Has anyone noticed this as well? Is there a workaround? (other than using hugs) Thanks, -- Peter

On Fri, Aug 10, 2007 at 09:14:27AM -0500, Peter Ilberg wrote:
I've noticed an odd display problem with ghci and vim. The problem occurs with ghci-6.6 and vim-6 on Mac OS X 10.4.9 (Terminal.app and uxrvt in X11.app) and with ghci-6.2.2, ghci-6.6.1 and vim-7.0 on OpenBSD 4.1 (via PuTTY from Windows).
I can't reproduce this in a uxterm, rxvt or putty, with ghci 6.6 and vim 7.0. Thanks Ian

Hello!
I've noticed an odd display problem with ghci and vim. The problem occurs with ghci-6.6 and vim-6 on Mac OS X 10.4.9 (Terminal.app and uxrvt in X11.app) and with ghci-6.2.2, ghci-6.6.1 and vim-7.0 on OpenBSD 4.1 (via PuTTY from Windows).
1 - Resize your terminal window to 40 lines. 2 - Start ghci. 3 - :set editor vim 4 - :edit File.hs (pick an existing file)
Vim doesn't display the file contents properly in the bottom half of my terminal window (it doesn't display parts of the file). But it does correctly display the : command line at the bottom of the screen. Do you see a lot of control structures scattering around?
The way you get them when using !vim within vim? (you can still use :q! do quit) your TERMINAL env var might be important. Does it look different when additionally running all within screen? Perhaps :h terminal* can also help? I'm no experienced user with this stuff. It did just work for me all the time :) Marc

On Fri, 10 Aug 2007, Marc Weber wrote: [...]
Do you see a lot of control structures scattering around?
The way you get them when using !vim within vim? (you can still use :q! do quit)
No control structures. The bottom part of the file is not displayed. Also, when I open a second window (:help), the modeline/divider isn't displayed and other things aren't quite right either. When I refresh with Ctrl-L, the cursor always ends up in the lower right corner on the last displayed character instead of where it used to be.
your TERMINAL env var might be important. Does it look different when additionally running all within screen?
Perhaps :h terminal* can also help?
Thanks for the :h terminal hint. I didn't know about that. Unfortunately, I had looked at the TERM and TERMCAP settings before. I found only one difference compared to running in a shell or within hugs, but it didn't fix the problem (nor did it break hugs when I tried the opposite). There may be other differences, but I can't see them since vim's display is messed up (:set termcap doesn't display all of the settings as it does when I run vim by itself). Oh well, I'll just stick to hugs for now. -- Peter
participants (3)
-
Ian Lynagh
-
Marc Weber
-
Peter Ilberg