On 15/05/11 12:35 PM, Where Where wrote:
Hello all,

I want to tell call python function every time a user has completed a
normal mode command. (For instance, I would not want to call the
function after the user presses "d" but would want to call the
function when the user has finished pressing "2dl"). I've considered
using mapping, but that could get complex. I would have to use
vimscript or python logic every time a key is pressed to tell if a
command is in process or has finished and then execute the command
with :norm, and I'm not sure how I would implement that.

Does anybody have any ideas?

Many thanks,
Daniel

Can't think of a generic way to do this.

If it doesn't have to happen *every* command, maybe the CursorHold
autoevent would work for you.

Perhaps targetting a subset of commands would be sufficient. Can you
explain why you want to do this? Maybe someone will have another
approach to the problem that is easier to implement in Vim.

Ben.



--
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

Reply via email to