> thank you, I am not quite sure how to use the plugin.
> For example, if I want to execute a external grep command in
> backgroud, and save the result to quick fix window.
> Which command should I execute?

Hi Robert.

You have to create your own mapping.

The doc has two examples:

  call bg#Run(["make","-f","linuxMakefile"], 1, funcref#Function('exec "cfile 
".ARGS[1]'))


  call bg#RunQF(cmd,'c',errorFormat)

cmd should be either a string or a list if I remember correctly


Thus

noremap \grep :call bg#RunQF(['grep','-nri',input("word to grep 
for:"),"."],'c')<cr>

Or such should do.

However I recommend you having a look at gnu idutils which may get the
job done even faster

Regards
Marc Weber

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

Reply via email to