Tuesday, March 23, 2010

Re: Problem of frequency call of func through --remote-expr

On Mar 22, 3:25 pm, epanda <callingel...@hotmail.fr> wrote:
> hum in fact this work but I would like an event out of user action,
> I thought cursorHold was when curso blink.
>
> Which event can I use to call myFunc each constant time?

There isn't one. The closest you can get is to use both CursorHold and
CursorMoved. See the :help entry for each. I believe I may have seen a
way to trick Vim into generating cursor movement with CursorHold, so
that CursorHold would fire repeatedly, but normally it just fires once
after the timeout period.

You may be better off making your EXTERNAL process run forever and
repeatedly call your function, as I suggested previously. You could do
this in a shell script/batch file/whatever you want.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: