au only on copen window

2010-02-11 Thread epanda
Hi I have a script that launch autocommand on cursorhold on * file : au CursorHold * call UpdateFile(g:temp_file) in UpdateFile function I do a copen botright copen 50 this work well on first cursorhold but from the second one, I would like autocommand call updatefile only if cursor is hold on

Re: au only on copen window

2010-02-11 Thread David Fishburn
On Thu, Feb 11, 2010 at 4:05 PM, epanda callingel...@hotmail.fr wrote: ... this work well on first cursorhold but from the second one, I would like autocommand call updatefile only if cursor is hold on copen buffer. So I have to delete the current autocommand and define another one,but I