Monday, February 27, 2012

Re:bash function output in vim function

you can write it like this:
redir => var
 silent! function()
redir END
 
let list = matchstr(var,'\n')
 
 
 
 
------------------ Original ------------------
Date:  Tue, Feb 28, 2012 01:59 PM
To:  "vim_use"<vim_use@googlegroups.com>;
Subject:  bash function output in vim function
 
hi,

here is what i want. i have a function in bash, based on some
criteria it emits a list of files, i want these list of files to be
used in vim's quickfix list. how can this be done. i tried like
this. The bash function is aliased to bashfunc, but the alias
is not available in vim's system() cmd, so i wrote a bash
script, which inturn source's the bashrc for the alias, and
calls the aliased cmd, when i call this script from vim's system()
it still doesn't work, am i missing something here.

tia
sinbad

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

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