Hi Hoss!

On Fr, 25 Sep 2009, Hoss wrote:

> I have a regex that will match several lines in the buffer. Instead 
> of just / searching for it and N'ing through the file, there's a way to
> execute the regex on the buffer and get a little sub window containing
> 1 line per match . . . how do you do that?

:h :vimgrep

e.g.
:vimgrep pattern %

regards,
Christian
-- 
% cat /usr/include/sys/errno.h
#define EPERM           1               /* Operation not permitted */
#define ENOENT          2               /* No such file or directory */
#define ESRCH           3               /* No such process */
#define EINTR           4               /* Interrupted system call */
[...]
#define EMACS           666             /* Editor Too Large */
%

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

Reply via email to