Forwarding to list.
-------- Original Message --------
Subject: Re: Why does VimResized get triggered 4 times per resize
Date: Fri, 9 Mar 2007 18:49:25 +0200
From: Marius Roets <[EMAIL PROTECTED]>
To: A.J.Mechelynck <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Hi Tony,
On Friday 09 March 2007 18:00, you wrote:
function ResizeEvent()
set lines-=1
redir >> ~/resize.log
silent echo "lines:" &lines
redir END
endfunction
au! VimResized * call ResizeEvent()
Thanks for showing me the redir command :)
then invoking (once) ":call ResizeEvent()" at the gvim command-line, I get
the following in ~/resize.log (which previously didn't exist):
<quote>
lines: 35
lines: 34
lines: 33
lines: 33
lines: 32
</quote>
Yes, this seems to vary, sometimes I get 3, sometimes 4. My results look
similar.
Which OS and Vim version (and patchlevel) are you using? I'm using openSUSE
Linux 10.2
Same here. My problems started when I enabled Xgl, and changed the window
manager to Compiz. Now Vim gives one line too many whenever I resize the
window, hence the auto command.
VIM - Vi IMproved 7.0 (2006 May 7, compiled Mar 8 2007 18:29:45)
Included patches: 1-214
Compiled by [EMAIL PROTECTED]
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
(etc.)
VIM - Vi IMproved 7.0 (2006 May 7, compiled Nov 27 2006 23:44:24)
Included patches: 1-146
Compiled by http://www.suse.de/
Huge version with GTK2 GUI. Features included (+) or not (-):
Funny, I was under the impression that I compiled Vim myself. Apparently I'm
using a binary that came with Suse.
Regards
Marius