On Thursday 15 October 2009, Sergey Avseyev wrote:
> Hi,
>
> I want to use fine tool gpicker
> (http://savannah.nongnu.org/projects/ gpicker), which
> outputs its result to stdout, i try to grab it with
> function below:
>
> function! Gpicker()
> redir => filename
> execute "!gpicker ."
> redir END
> silent put=filename
> endfunction
>
> I call gpicker in my home directory and select file .vimrc,
> try to grab output and put it into buffer, but I got
>
> :!gpicker .
>
> [No write since last change]
>
> instead of ".vimrc".
>
> Where am I wrong?
you're making it much harder than it needs to be
if you want the output of gpicker in your buffer, simply
enter:
:r!gpicker
hth,
sc
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---