On 10/10/10 23:12, Martin Lundberg wrote:
I'm confused and don't really know where to start. Most of the
examples are too complex.

Would really appreciate if someone could write some simple basic code
that does the basics of fetching the pattern, showing it to the user
and calling a method giving it the pattern. From there I can evolve.
But maybe it's just that it is complex and it's not possible to make a
simple example. I'll keep looking into the scripts trying to
understand it.

I'm not sure what you actually want to do. OTOH, Vim works best if you don't come to it with preconceived ideas about how to do what you want done.

This said, would

        :g/pattern/p

be something you could use?

see
        :help :g
        :help pattern.txt
                " and in particular
        :help pattern-overview          " (the whole section)
        :help :p


Nest regards,
Tony.
--
LARGE MAN:   Who's that then?
CART DRIVER: (Grudgingly) I dunno, Must be a king.
LARGE MAN:   Why?
CART DRIVER: He hasn't got shit all over him.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to