Vim scripts sometimes resize the whole shell (in my case the Taglist plugin).

I don't want this behavior, which is possible with the shell command resize, too.

Is there a way to suppress the whole resizing in shell windows? Any .*rc files to tune?

I'm using gnome-terminal.

  • xterm has a preference to ignore "window ops", the control codes that move/resize the window. I don't see anything like this mentioned in the Gnome terminal manual, but you might try looking for something like that.
    – Chris Page
    Jun 29, 2012 at 13:46

3 Answers 3


To fix your Taglist issue, add the following somewhere in your .vimrc:

let Tlist_Inc_Winwidth=0

From the VIM documentation:

Window resizing with xterm only works if the allowWindowOps resource is
enabled.  On some systems and versions of xterm it's disabled by default
because someone thought it would be a security issue.  It's not clear if this
is actually the case.

To overrule the default, put this line in your ~/.Xdefaults or

    XTerm*allowWindowOps:       true
     (note: this actually ENABLES it, you want to DISABLE, ie: false)

And run "xrdb -merge .Xresources" to make it effective.  You can check the
value with the context menu (right mouse button while CTRL key is pressed),
there should be a tick at allow-window-ops.

From my own experience with the Xresources, if you drop the 'XTerm' part, and just lead with the asterisk, it should also apply for any gnome terminals too. The gnome terminal has it's particular prefix, but I don't know it, maybe someone could comment with that info, but the *allowWindowOps: false line should help.

  • I am using xfce4-terminal and experience the same problem using vim in a remote host (through ssh) but with my locally installed vim I have no problems, the ~/.Xresources line fix my problem, but why this happen ? Apr 10, 2017 at 3:43

Just a shot in the blue, but does

shopt -s checkwinsize off


  • this doesn't work - and shopt -u checkwinsize has no effect. May 1, 2012 at 2:21

This worked for me

shopt -u checkwinsize

Running Centos in docker and accessing from screen.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .