Sunday, October 10, 2010

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

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/tomtom/tlib_vim
>
> [2]http://www.vim.org/scripts/script.php?script_id=1865http://github.com/tomtom/tselectfiles_vim

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