Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I love the way I can resize windows in vim using the mouse.

Is it possible to do the same in GNU screen? If not, is there an alternative to screen that supports this functionality?

share|improve this question

migrated from Mar 19 '10 at 11:53

This question came from our site for professional and enthusiast programmers.

You can resize vim windows with the mouse? I guess the mouse is the furthest thing from my mind when I'm using vim. – guns Mar 19 '10 at 2:59
as others asked before: are you referring to resizing of split windows? Such you get with C-a S ? – Florenz Kley Mar 23 '11 at 20:13

I use screen all the time, and change the window size effortlessly, without an issue. It's whatever command is running inside the screen that needs to be able to resize as well.

share|improve this answer
I believe the question is implicitly referring to split windows (:split) – RobM Jan 25 '11 at 19:19

I agree with Roy - I resize windows all the time, and I only run things in screen. In fact, I can't think of the last time I kept a terminal up for more than 1 minute that wasn't running screen permanently.

Even with Putty from a windows box, it works.

Even with Putty from a windows box, ssh'ed into localhost running cygwin/sshd, running screen, it works.

Maybe there's something in your .screenrc or even your shell's .rc file that's preventing resize?

share|improve this answer

I think Terminator is probably what you're looking for.

Note that I've never used GNU Screen or Terminator, so I'm relying on the following information:

  1. According to the intro to the Wikpedia article about GNU Screen, it's main purpose is for showing "multiple separate terminal sessions inside a single terminal window".
  2. The header on Terminator's site on Launchpad says, "the main focus is arranging terminals in grids".
  3. The screenshots seem to be displaying similar features.
  4. I've read a little bit in passing when they've been mentioned on blogs, and heard a bit in podcast segments. My memory of what they said is also in agreement with the answer.
share|improve this answer

GNU screen is completely oblivious of the mouse.

As is Vim, when it's running within a TTY emulator.

share|improve this answer
Vim supports using the mouse from a TTY emulator. See :help mouse and :help ttymouse for details. – Niten Apr 11 '10 at 20:08
xterm-style mouse reporting writes (non-ASCII) characters to the TTY device. GNU/screen interprets all characters written to it, and translates them as appropriate, so it could be aware of the mouse in the same way Vim is. – RobM Jan 25 '11 at 19:18

I guess you are talking about resizing the split areas inside a window. I agree that this is possible to do it in VIM with the mouse. This is very handy.

I also would like this feature for gnu screen.

In the meantime, I recommend you to try the sweet extension Vim-shell, which enables you to have native shells embedded in VIM.

It's too bad it is no more maintained or merged within Vim itself. You will have to compile it by hand on an older version of VIM (7.0).

share|improve this answer
You can also try Conque Shell. It's a vim plugin (not a patch) and works great for me: – f3lix Mar 25 '11 at 16:31
God! This is just awesome... Thanks for the tip. – Raphael Jolivet Mar 31 '11 at 15:50

X Window, by itself, generates borderless windows in fixed screen locations. It requires a "window manager" to add borders and buttons and the ability for users to resize and move the windows on screen. The Tabbed Window Manager (twm) has been the default X window manager, but more than three dozen others have been used, including AfterStep, Blackbox and Enlightenment. The KDE and GNOME user interfaces for Linux use Kwin and Metacity respectively as their window managers.


share|improve this answer
please link to your source, repeat offenses will result in suspension. Thanks! – studiohack Mar 12 '11 at 23:14

I think Tmux knows about the mouse:

tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

share|improve this answer

You must log in to answer this question.

protected by studiohack Mar 12 '11 at 23:17

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?