Saturday, November 12, 2011

Re: python scripting: simulate vim key strokes

On 11/12/2011 07:25 PM, Jan Christoph Ebersbach wrote:
> Hi Gelondia,
>
> You can use vim.eval to feed keys Actually you can call any function
> that vim provides through vim.eval. Have a look at :h functions for
> more information. The solution for your problem would look like this:
>
> vim.eval("feedkeys('y', 'n')")
>

Thanks a lot.

feedkeys does exactly what I was looking for.

:h feedkeys

is very helpful


:h functions
is the entrypoint, that gives me quite some info about
all the functions, that I didn't know.

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

No comments: