carlhuda / janus

Vim distribution
7.87k stars 816 forks source link

Sometimes get `Error detected while processing VimResized Auto commands for "*"` when starting gvim #558

Open SimonWoolf opened 10 years ago

SimonWoolf commented 10 years ago

On starting gvim, I sometimes get the following error:

Error detected while processing VimResized Auto commands for "*":
E523: Not allowed here: wincmd =
Press ENTER or type command to continue

Error seems to be referring to the line:

autocmd VimResized * wincmd =

in .vim/janus/vim/core/before/plugin/gui_settings.vim.

Commenting out this line eliminates the error, but also (naturally) means that split panes are no longer auto-resized when I resize the gvim window. (Resizing works fine otherwise, even when the error happens).

The really irritating thing is, the error seems to be non-deterministic. I get it sometimes, but not always. Which makes it very frustrating to debug.

Things I've worked out so far from lots of trial and error:

Yes, I thought I was crazy too.

I've run rake in my .vim folder, so janus is up to date.

The error does not occur with macvim on a macbook with identical .*[g]vimrc.[before|after]'s.

System details: Cinnamon on Ubuntu 13.10; gvim provided by vim-gnome 2:7.4.000-1ubuntu2.

kalbasit commented 10 years ago

How about how do you start gvim? Maybe related to new session versus opening a file?

mlncn commented 6 years ago

Happened to me when opening a new file started a new session. Had to close the window with the X, nothing else let me regain control of gvim.