Matt Wozniski wrote:
>  Either way, though, my point stands - even if your terminal emulator
>  supports it, programs that you run in it (like screen and dvtm) can
>  break it, so it's probably a bad idea to do.

Yes, I've seen the kind of bad behavior you are mentioning when using
the following within console Vim (even when using Konsole, though maybe
I just need to change some setting since Tony says it works for him):

set columns=161

It's true I can re-size the terminal emulator itself and Vim will nicely
re-adjust its columns and rows, but I've grown very used to a couple of
custom Vim commands I use to flip between a single 80-column window and
a pair of vertically-split windows:

    :L1      " Switches to a single 80-column window.
    :L2      " Switches to a pair of vertically split 80-column windows.

As part of these two commands I reset various other aspects of the
layout (e.g., the QuickFix window is resized to my standard size, the
windows are re-balanced via :wincmd =, etc.).

Ideally, I could find some way to have Vim script trigger the right
action in the terminal emulator, perhaps by "shelling out" to an
external command that could signal the terminal emulator to change size,
indirectly changing Vim's notion of columns and rows.  If I could
control the window layout as easily in console Vim as I can in Gvim, I
could more easily live inside GNU screen and share a single running
instance of vim from multiple computers.

Michael Henry


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to