On Thu, Nov 26, 2009 at 9:26 PM, Isaac <tingjun.li@gmail.com> wrote:
 
 a quick reply as below:On Thu, Nov 26, 2009 at 9:11 PM, Tim Chase <vim@tim.thechases.com> wrote:
2) You meant "I wanted to copy 'Lesson' down as well, but forgot
to mention that in my original post about copying Abstracts" :)
That's a bit more complex, but not too bad. My first thought
(untested) would be something like changing my
to
:g/^Lesson \d\+//^Abstract/;/^-\@!/t$
:g/^Lesson \d\+/ka|t$|'a/^Abstract/;/^-\@!/t$
=> it works!!
===================================================================
Lesson 1 						"This is what i want to get
 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
 Lesson 2 
Abstract
-tip1
-tip2
-tip3
-…
-…
Lesson 77 
Abstract
-tip1
-tip2
-tip3
 -tip4
-…
===================================================================
i love this group~ happy vimming! ^-^
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment