On 5/12/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
Is there any way to cause autoread to trigger more often?  As far as I
can tell, it only triggers on a focus change (just a guess).  So, if
some external program is slowly writing to the file, you don't get the
updates (in Windows anyway) unless you switch back and forth between
gvim and the command shell.

I didn't try it, but I think you can make vim check file-timestamps
as often as you want with these 2 tricks:

1. set updatetime=100 " 100 millisec
   au CursorHold * :checktime

2. invoke ':checktime' from a function invoked from statusline via %{}
  mechanism

I like #1 better because it never slows down interactivity of vim
while #2 can slow down.

Yakov

Reply via email to