On Aug 4, 4:22pm, Adam <[email protected]> wrote: > I actually just figured this out earlier today. First clear a register (qaq > to clear a for example). Then go like this: `g:/regex/:silent y A` to copy > all the lines that match into register A. > > If you want to copy just the regex there is a function > here:http://vim.wikia.com/wiki/Copy_the_search_results_into_clipboard but > don't > use it with a *lot* of matches or it'll freeze vim.
Adam I am curious what u do after u put the text in register A, do u copy it to another buffer? Thanks, I guess I don't fully understand the power of registers, looks like I only use it to record macros. -- 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
