On 2020-09-02 19:14, russurquhart1 via vim_use wrote:
> Hi All,
> I generally use:
> :vim `beta: ` **/*.md | copen
> To traverse my Markdown files to find those containing 'beta: '.
> I need to do the opposite but can get the pattern right. I tried
> :vim -v `beta: ` **/*.md | copen
>
> thinking that might work but no dice.
> I looked through teh vimgrep help but couldn't find anything.
> Does anyone know how to do this?
While I don't know off the top of my head how to coerce :vim to do
this, I'd likely populate the arglist with everything
:args **/*.md
and then either wipe the buffers you don't want:
:argdo g/beta:/bwipe
or remove them from the arg list
:argdo g/beta:/argd %
depending on which you prefer.
-tim
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200903072316.377c37f0%40bigbox.attlocal.net.
Thursday, September 3, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment