On Wed, Oct 08, 2008 at 08:30:19AM -0700, Vincent wrote:
> 
> Hello,
> I am using taglist (http://www.vim.org/scripts/script.php?
> script_id=273) and I would like the command :TlistUpdate to be run
> regularly (every 10 seconds e.g.). This command will update the list
> of tags for the file I am editing. How can I do so?

Vim doesn't have a built-in timer that will do something repeatedly, and
even if it did, Vim is single-threaded, so it would interrupt your work
while it did it's work.

The next-best thing you can do is hook into the CursorHold autocommand
which would be more than happy to call :TlistUpdate for you after
'updatetime' milliseconds of inactivity.  This way, it's gonna happen
after a default of 4 seconds after you quit hitting keys, and therefore
be less likely to interfere with your typing.

see
:he CursorHold
:he 'updatetime'


> Thanks,
> Vincent
> 
> > 

-- 
Erik Falor
Registered Linux User #445632 http://counter.li.org

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to