Friday, December 20, 2013

vim: combine quickfix with bufdo/tabdo/argdo/windo..

I'm quite sure that vim is lacking an important/handy feature here:

it provides the bufdo/tabdo/argdo/windo , wich gives precise control to what files you are operating on.
it also provide vimgrep+QFwin, which provide a built-in powerful multi-file search ability.

but if it look at vimgrep, it actually provide very little control of on what files your search is running on -- mostly you either have to list all files manually, or you have to put all files in one folder and using "*" or "**" to work on them.

from the pratical working flow, you typically work on some random set of files in a vim instance, open a lot of buffers/tabs, and finally you may want to narrow down to a couple of files that you already opened (for me, mostly in tabs).

at this point, I hope to run vimgrep on all of these opened tabs, so I don't need to find out the each individual file location/name again and feed to vimgrep one by one..

apparently vimgrep doen't care about buffers/tabs so far.

the only thing close is the "##", which is the list of all files as vim args when it was invoked.
but that is not always precise either. since something you changed the mind after you worked on these files, but only want to check some of the files , which you assigned with a tab for each.

so in short, is there a way to run vimgrep , to all current buffers, or tabs?

thanks!


--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment