Hi all,
   I would like to write a small function in Vim but I am not sure
where to start from. Generally speaking, given a pattern and a file
name, I would like to grep the pattern in the file and put all the
matching lines into a variable (or a register). Also, the file name
should be an argument of the function.

I have tried using vimgrep, but I don't know how to capture the output
into a variable.

Thank you for any suggestion!
   Marco

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to