Hi all,

I downloaded some copies of US Code. Since I am only interested in the
statute, not revision history and other information, I'd like to
delete anything enclosed by a pair of '-SOURCE-' and '-End-'. How can
I do it in vim? Thanks.

Example text:

-CITE-
    21 USC Sec. 321a
01/07/2011

-EXPCITE-
    TITLE 21 - FOOD AND DRUGS
    CHAPTER 9 - FEDERAL FOOD, DRUG, AND COSMETIC ACT
    SUBCHAPTER II - DEFINITIONS

-HEAD-
    Sec. 321a. "Butter" defined

-STATUTE-
      For the purposes of the Food and Drug Act of June 30, 1906
    (Thirty-fourth Statutes at Large, page 768) "butter" shall be
    understood to mean the food product usually known as butter, and
    which is made exclusively from milk or cream, or both, with or
    without common salt, and with or without additional coloring
    matter, and containing not less than 80 per centum by weight of
    milk fat, all tolerances having been allowed for.

-SOURCE-
    (Mar. 4, 1923, ch. 268, 42 Stat. 1500.)

-REFTEXT-
                            REFERENCES IN TEXT
      The Food and Drug Act of June 30, 1906, referred to in text, is
    act June 30, 1906, ch. 3915, 34 Stat. 768, which was classified to
    subchapter I (Sec. 1 et seq.) of chapter 1 of this title, was
    repealed (except for section 14a which was transferred to section
    376 of this title) by act June 25, 1938, ch. 675, Sec. 1002(a),
    formerly Sec. 902(a), 52 Stat. 1059; renumbered Sec. 1002(a), Pub.
    L. 111-31, div. A, title I, Sec. 101(b)(2), June 22, 2009, 123
    Stat. 1784, and is covered by this chapter.

-COD-
                               CODIFICATION
      Section, which was not enacted as part of the Federal Food,
Drug,
    and Cosmetic Act which comprises this chapter, was formerly
    classified to section 6 of this title. Section 1002(a) of act June
    25, 1938, set out as an Effective Date note under section 301 of
    this title, provided that this section should remain in force and
    effect and be applicable to the provisions of this chapter.

-End-

-- 
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