On 2015-04-04, Chris Lott wrote:
> I have a directory of files with names like 'clips-20150101' 'clips-20150102'
> etc. I need to open a file, jump to a particular string, optionally yank some
> arbitrary text, and repeat for every file in the directory. What's the 
> quickest
> way to do this in Vim?

What I do is this:

    :grep 'particular string' clips-2015*

Then traverse the resulting quickfix list and yank the desired text
into an upper-case register so that the yanks are accumulated.

Traversing the quickfix list  is made a little faster with these
mappings:

    :nmap <silent> <C-N> :cn<CR>zv
    :nmap <silent> <C-P> :cp<CR>zv

HTH,
Gary

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to