title: VIM : How to copy all lines having a substring to another file/buffer?
body: <p>I want to search within a function, and copy all lines which are calling a different function within that scope, to a different file. I know I can limit the scope of the search by visual selection, and search is easy - but I'm not getting a convenient way of copying all search results to any buffer (which I can then paste to another file for my analysis)...
  Can someone point to the solution (I'm almost sure it would be pretty easy, but for some reason, its not obvious to me !!) ?</p>