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 !!) ?
I want to search within a function, and copy all lines which are calling
Share
You can use:
Maybe this answer about registers can be of some help for you.
An alternative if you want to APPEND to your other buffer:
References :
:help :g,:help :#,:help :redir