Thursday, November 26, 2009

Re: A quick way to get abstract from a very _long_ article?

Hello, tim: 

thanks!

On Thu, Nov 26, 2009 at 9:03 AM, Tim Chase <vim@tim.thechases.com> wrote:

Depending on the complexity of your document and how whitespace
is treated, you can do most of them pretty easily:

   :g/^Lesson \d\+//^Abstract/;/^-\@!/t$


with this command i get result like following:

------------------------------------------------------------------------------------------------
Abstract "This is what i want to get
-every abstrct point        "This is what i want to get
-will start with string '-'                "This is what i want to get
-... "This is what i want to get

Abstract
-tip1
-tip2
-tip3
-…
-…

Abstract
-tip1
-tip2
-tip3
-tip4
-…
 ------------------------------------------------------------------------------------------------

I think it has solved my first problem, it's amazing~~

but I can't understand the expression very well, could you give me some more 
explanation about how you organize  the command and what every part stand for?

another question: "Lesson is disappeared?"

I will read and have a try of left of your reply now. thanks again!

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

No comments: