Sunday, October 10, 2010

Re: How to filter input in a buffer in a script?

I'm confused and don't really know where to start. Most of the
examples are too complex.

Would really appreciate if someone could write some simple basic code
that does the basics of fetching the pattern, showing it to the user
and calling a method giving it the pattern. From there I can evolve.
But maybe it's just that it is complex and it's not possible to make a
simple example. I'll keep looking into the scripts trying to
understand it.

On 10 Okt, 13:45, Martin Lundberg <martin.lundb...@gmail.com> wrote:
> Thanks both of you! I will take a look at the scripts you listed. Just
> want to make clear I'm not looking so much for a plugin which can do
> this for me as I am to learn how to do it myself in vim script so no
> python/ruby plugins :)
>
> On 10 Okt, 13:07, Tom Link <micat...@gmail.com> wrote:
>
>
>
>
>
>
>
> > > I'm want to do the same with buffers in vim script.
>
> > tlib's[1] tlib#input#List() function does the same in vim script. In
> > conjunction with tselectfiles[2] it provides a similar features as
> > command-t -- from what I can tell.
>
> > IMHO the main question is whether you want to call the function
> > synchronously (in this case your will probably have to read the
> > characters with getchar() in a loop) or asynchronously (in this case
> > you could also use buffer local maps and map all unwanted keys to
> > something that doesn't do anything at all).
>
> > Regards,
> > Tom
>
> > [1]http://www.vim.org/scripts/script.php?script_id=1863http://github.com...
>
> > [2]http://www.vim.org/scripts/script.php?script_id=1865http://github.com...

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