fuzzylogic25 wrote:
> I am new to Vim. I am trying to open a very large document
> and copy the occurrence of a particular word in every line.
> So for example lets say the word "cat" appears 500 times in a
> 50,000 line document. I would like those 500 lines saved to a
> file somehow, or at least copied so I can somehow save it to a file.

Some techniques are shown here (including :g/pattern/y A):
http://vim.wikia.com/wiki/Copy_the_search_results_into_clipboard

John

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