Did you try using the Pippo() function from foo.vim , as I
suggested in my previous post?
http://www.vim.org/script.php?script_id=72
HTH --Benji Fisher
On Thu, Jun 01, 2006 at 10:13:22AM +0530, SHANKAR R-R66203 wrote:
This is assuming that the each line
This will copy the entire line.
I do not want to copy the entire line, but just the pattern.
Regards,
Shankar
-Original Message-
From: Vishnu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 3:53 PM
To: SHANKAR R-R66203
Cc: vim@vim.org
Subject: RE: Copying everything which
everything (not the complete line, only the
matching pattern) which matches a pattern
This will copy the entire line.
I do not want to copy the entire line, but just the pattern.
Regards,
Shankar
-Original Message-
From: Vishnu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 3:53 PM
It depends on what you mean by a buffer. The basic idea of using
:g should work, and there are a lot of different ways to use it. For
example,
:let @a =
:g/\c\a*/let @a .= matchstr(getline(.), @/) . \n
will copy all words starting with c into the a register. You cna then
do
:new
:put a