Summary: | konsole ought to communicate number of columns (and lines) to vi | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Lucius Chiaraviglio <lucius1> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Lucius Chiaraviglio
2003-08-23 03:58:15 UTC
Using kde 3.2rc1 and vim 6.2, it works for me. Test it by issuing in vim ":set lines columns". Then change the konsole window and use the :set command again. Vim knows the correct lines and columns. After seeing your comment, I did a bit more testing and found that what you are saying does indeed work, EXCEPT that if you resize the window (for instance, to 125 * 41) BEFORE you start vim, it then thinks that it has 80 columns even though the window is wider. In contrast, if you resize an xterm to some large size and then start vim, the xterm gets resized to 80 columns (but again, if you resize the xterm while vim is running, it recognizes the change). WIERD. Maybe this is actually a vim bug? But clearly konsole is doing something different than xterm in this regard. (And I could have sworn that xterm used to not get resized, but instead caused vim to start knowing that it had >80 columns -- maybe upgrading XFree86 from 4.3.0 to 4.3.99.902 = 4.4rc2 broke something in the interaction between xterm and vim?) By the way, my konsole version is 1.2 (supplied with KDE 3.1.0 -- this information apparently didn't make it into my original feature request). I haven't yet tried the above tests under KDE 3.1.5, but plan to do so after I perform some other necessary upgrades. Everything I try using kde3.2.2/CVS and VIM - Vi IMproved 6.2 (gentoo, who adds a lot of patches) works. I've tried using different sizes of konsole, then starting vim, then resizing konsole... looks good to me. xterm from XFree86 4.2.99.903(174) works the same way as konsole does (it appears to me). Had a major hard drive fry; restored my system and then upgraded to XFree86 4.4.0 (but have not yet upgraded KDE). Now, vi seems not to get the right information about number of columns (defaults to 80) when it is started (but it does get the lines right), but seems to get all information properly when the window is resized (in konsole or xterm) while vi is running. So now it ALMOST works right. Marked as fixed for now. Please reopen if still an issue. |