It isn't clear how the 't' mode is different from 'm'?  I thought the
point of feedkeys() was that all the keys were to be used as typed by
a user?

On 4/25/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 4/25/06, Robert Cussons <[EMAIL PROTECTED]> wrote:
> > Bram's last announcement mentioned:
> >
> > - Added the feedkeys() function: put keys in the typeahead queue.
> >
> > Is this something that has been just added in Vim 7.0 or is it added in
> > the sense of it had been left out of Vim 7.0 by mistake and has now been
> > added ... ?
> It was added now.
>
> > ... and more interestingly, what does it do?
>
> feedkeys( {string} [, {mode}])  Number  add key sequence to typeahead buffer
>
> feedkeys({string} [, {mode}])                           *feedkeys()*
>                 Characters in {string} are queued for processing as if they
>                 come from a mapping or where typed by user.  They are added to
>                 the end of the typeahead buffer, thus if a mapping is still
>                 being executed these characters come after them.
>                 The function does not wait for processing of keys contained in
>                 {string}.
>                 To include special keys into {string}, use double-quotes
>                 and "\..." notation |expr-quote|. For example,
>                 feedkeys("\<CR>") simulates pressing of the Enter key. But
>                 feedkeys('\<CR>') pushes 5 characters.
>                 If {mode} is absent, keys are remapped.
>                 {mode} is a String, which can contain these character flags:
>                 'm'     remap keys. This is default.
>                 'n'     do not remap keys
>                 't'     handle keys as if typed; otherwise they are handled as
>                         if coming from a mapping
>                 Return value is always 0.
>

Reply via email to