Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5014b2156318a4000200000b

Convert regular pandoc footnotes to in-line notes

Pandoc extends markdown by allowing footnotes, which are usually represented with a footnote identifier followed later in the document by the footnote itself. But Pandoc also allows inline footnotes without identifiers. How many strokes does it take to convert regular footnotes to inline notes? (NB: I've had trouble figuring out whether text-width makes a difference to Vimgolf in comparing the input and output file. I finally tested this locally using the Vimgolf vimrc and did a "gq" on the entire buffer as the last step. Apologies if I'm making a newbie mistake. First time submitter.)

Start file
American democracy means, at the very least, majority rule. And Wendell
Phillips was, above all, a democrat. “I plant myself always on
democratic principles," Phillips said in 1865. "I am a democrat,
ingrained, from top to toe.”[^1]

Of course, Phillips could not always be so explicit in calling himself a
democrat, because during his lifetime, the Democratic Party was
committed officially to silencing abolitionists like him. But in
retrospect, few things about Phillips are clearer than that he was a
democrat. In an era when even the Democratic Party committed itself, at
most, to universal white manhood suffrage, Phillips advocated the right
to vote without respect to sex or complexion, and he also publicly
supported the efforts of democratic reformers abroad like the British
Chartists at a time when even male suffrage was still rare and
controversial outside the United States. The abolitionist and Chartist
exile to the United States John C. Cluer, for example, vouched for
Phillips as "a genuine Democrat," and claimed to know that Phillips,
while in England in 1840, had "perilled his popularity by finding his
way into a loft among the Chartists," and speaking and sympathizing with
them, "instead of seeking introductions to the aristocracy."[^2]

A far-sighted advocate for the right to vote, Phillips also planted
himself on the broader democratic principle that the people and "public
opinion" should rule. In an important 1852 speech entitled "Public
Opinion," Phillips even declared that "the people never err." He did not
mean, of course, that every "single verdict which the people of to-day
may record" was right, as he immediately clarified. But he did believe
that "the great democratic tendencies of the masses" moved in the
direction of right, especially over the long run. If, as James Brewer
Stewart notes in his biography, Phillips was born "an offspring of
aristocrats," as a man he became a democrat of democrats.[^3]

[^1]: "Massachusetts Anti-Slavery Society Annual Meeting," *Liberator*,
    17 February 1865. Phillips made the statement while arguing for
    voting rights for freedmen in the South.

[^2]: "Twenty-Ninth Annual Meeting of the Massachusetts Anti-Slavery
    Society," *Liberator*, 31 January 1862. Phillips's longstanding
    commitments to the expansion of suffrage are sometimes overlooked
    because in the 1840s and 1850s Phillips himself, like many
    Garrisonians, refused to vote under a proslavery Constitution. Yet
    Phillips's position was much like Garrison, who explained his
    support for women's right to vote in 1850 by saying that "I want the
    women to have the right to vote, and I call upon them to demand it
    perseveringly until they possess it. When they have obtained it, it
    will be for them to say whether they will exercise it or not."
    Garrison quoted in John L. Thomas, *The Liberator: William Lloyd
    Garrison, A Biography* (Boston: Little, Brown, 1963), 372-373; see
    also Kraditor, *Means and Ends in American Abolitionism*, 59.

[^3]: Wendell Phillips, "Public Opinion," in *Speeches, Lectures and
    Letters* (Boston: James Redpath, 1863), 45-46; James Brewer Stewart,
    *Wendell Phillips: Liberty's Hero* (Baton Rouge: Louisiana State
    University Press, 1986, 3).
End file
American democracy means, at the very least, majority rule. And Wendell
Phillips was, above all, a democrat. “I plant myself always on democratic
principles," Phillips said in 1865. "I am a democrat, ingrained, from top to
toe.”^["Massachusetts Anti-Slavery Society Annual Meeting," *Liberator*, 17
February 1865. Phillips made the statement while arguing for voting rights for
freedmen in the South.]

Of course, Phillips could not always be so explicit in calling himself a
democrat, because during his lifetime, the Democratic Party was committed
officially to silencing abolitionists like him. But in retrospect, few things
about Phillips are clearer than that he was a democrat. In an era when even the
Democratic Party committed itself, at most, to universal white manhood
suffrage, Phillips advocated the right to vote without respect to sex or
complexion, and he also publicly supported the efforts of democratic reformers
abroad like the British Chartists at a time when even male suffrage was still
rare and controversial outside the United States. The abolitionist and Chartist
exile to the United States John C. Cluer, for example, vouched for Phillips as
"a genuine Democrat," and claimed to know that Phillips, while in England in
1840, had "perilled his popularity by finding his way into a loft among the
Chartists," and speaking and sympathizing with them, "instead of seeking
introductions to the aristocracy."^["Twenty-Ninth Annual Meeting of the
Massachusetts Anti-Slavery Society," *Liberator*, 31 January 1862. Phillips's
longstanding commitments to the expansion of suffrage are sometimes overlooked
because in the 1840s and 1850s Phillips himself, like many Garrisonians,
refused to vote under a proslavery Constitution. Yet Phillips's position was
much like Garrison, who explained his support for women's right to vote in 1850
by saying that "I want the women to have the right to vote, and I call upon
them to demand it perseveringly until they possess it. When they have obtained
it, it will be for them to say whether they will exercise it or not." Garrison
quoted in John L. Thomas, *The Liberator: William Lloyd Garrison, A Biography*
(Boston: Little, Brown, 1963), 372-373; see also Kraditor, *Means and Ends in
American Abolitionism*, 59.]

A far-sighted advocate for the right to vote, Phillips also planted himself on
the broader democratic principle that the people and "public opinion" should
rule. In an important 1852 speech entitled "Public Opinion," Phillips even
declared that "the people never err." He did not mean, of course, that every
"single verdict which the people of to-day may record" was right, as he
immediately clarified. But he did believe that "the great democratic tendencies
of the masses" moved in the direction of right, especially over the long run.
If, as James Brewer Stewart notes in his biography, Phillips was born "an
offspring of aristocrats," as a man he became a democrat of democrats.^[Wendell
Phillips, "Public Opinion," in *Speeches, Lectures and Letters* (Boston: James
Redpath, 1863), 45-46; James Brewer Stewart, *Wendell Phillips: Liberty's Hero*
(Baton Rouge: Louisiana State University Press, 1986, 3).]

View Diff

2,4c2,6
< Phillips was, above all, a democrat. “I plant myself always on
< democratic principles," Phillips said in 1865. "I am a democrat,
< ingrained, from top to toe.”[^1]
---
> Phillips was, above all, a democrat. “I plant myself always on democratic
> principles," Phillips said in 1865. "I am a democrat, ingrained, from top to
> toe.”^["Massachusetts Anti-Slavery Society Annual Meeting," *Liberator*, 17
> February 1865. Phillips made the statement while arguing for voting rights for
> freedmen in the South.]
7,20c9,32
< democrat, because during his lifetime, the Democratic Party was
< committed officially to silencing abolitionists like him. But in
< retrospect, few things about Phillips are clearer than that he was a
< democrat. In an era when even the Democratic Party committed itself, at
< most, to universal white manhood suffrage, Phillips advocated the right
< to vote without respect to sex or complexion, and he also publicly
< supported the efforts of democratic reformers abroad like the British
< Chartists at a time when even male suffrage was still rare and
< controversial outside the United States. The abolitionist and Chartist
< exile to the United States John C. Cluer, for example, vouched for
< Phillips as "a genuine Democrat," and claimed to know that Phillips,
< while in England in 1840, had "perilled his popularity by finding his
< way into a loft among the Chartists," and speaking and sympathizing with
< them, "instead of seeking introductions to the aristocracy."[^2]
---
> democrat, because during his lifetime, the Democratic Party was committed
> officially to silencing abolitionists like him. But in retrospect, few things
> about Phillips are clearer than that he was a democrat. In an era when even the
> Democratic Party committed itself, at most, to universal white manhood
> suffrage, Phillips advocated the right to vote without respect to sex or
> complexion, and he also publicly supported the efforts of democratic reformers
> abroad like the British Chartists at a time when even male suffrage was still
> rare and controversial outside the United States. The abolitionist and Chartist
> exile to the United States John C. Cluer, for example, vouched for Phillips as
> "a genuine Democrat," and claimed to know that Phillips, while in England in
> 1840, had "perilled his popularity by finding his way into a loft among the
> Chartists," and speaking and sympathizing with them, "instead of seeking
> introductions to the aristocracy."^["Twenty-Ninth Annual Meeting of the
> Massachusetts Anti-Slavery Society," *Liberator*, 31 January 1862. Phillips's
> longstanding commitments to the expansion of suffrage are sometimes overlooked
> because in the 1840s and 1850s Phillips himself, like many Garrisonians,
> refused to vote under a proslavery Constitution. Yet Phillips's position was
> much like Garrison, who explained his support for women's right to vote in 1850
> by saying that "I want the women to have the right to vote, and I call upon
> them to demand it perseveringly until they possess it. When they have obtained
> it, it will be for them to say whether they will exercise it or not." Garrison
> quoted in John L. Thomas, *The Liberator: William Lloyd Garrison, A Biography*
> (Boston: Little, Brown, 1963), 372-373; see also Kraditor, *Means and Ends in
> American Abolitionism*, 59.]
22,54c34,45
< A far-sighted advocate for the right to vote, Phillips also planted
< himself on the broader democratic principle that the people and "public
< opinion" should rule. In an important 1852 speech entitled "Public
< Opinion," Phillips even declared that "the people never err." He did not
< mean, of course, that every "single verdict which the people of to-day
< may record" was right, as he immediately clarified. But he did believe
< that "the great democratic tendencies of the masses" moved in the
< direction of right, especially over the long run. If, as James Brewer
< Stewart notes in his biography, Phillips was born "an offspring of
< aristocrats," as a man he became a democrat of democrats.[^3]
< 
< [^1]: "Massachusetts Anti-Slavery Society Annual Meeting," *Liberator*,
<     17 February 1865. Phillips made the statement while arguing for
<     voting rights for freedmen in the South.
< 
< [^2]: "Twenty-Ninth Annual Meeting of the Massachusetts Anti-Slavery
<     Society," *Liberator*, 31 January 1862. Phillips's longstanding
<     commitments to the expansion of suffrage are sometimes overlooked
<     because in the 1840s and 1850s Phillips himself, like many
<     Garrisonians, refused to vote under a proslavery Constitution. Yet
<     Phillips's position was much like Garrison, who explained his
<     support for women's right to vote in 1850 by saying that "I want the
<     women to have the right to vote, and I call upon them to demand it
<     perseveringly until they possess it. When they have obtained it, it
<     will be for them to say whether they will exercise it or not."
<     Garrison quoted in John L. Thomas, *The Liberator: William Lloyd
<     Garrison, A Biography* (Boston: Little, Brown, 1963), 372-373; see
<     also Kraditor, *Means and Ends in American Abolitionism*, 59.
< 
< [^3]: Wendell Phillips, "Public Opinion," in *Speeches, Lectures and
<     Letters* (Boston: James Redpath, 1863), 45-46; James Brewer Stewart,
<     *Wendell Phillips: Liberty's Hero* (Baton Rouge: Louisiana State
<     University Press, 1986, 3).
---
> A far-sighted advocate for the right to vote, Phillips also planted himself on
> the broader democratic principle that the people and "public opinion" should
> rule. In an important 1852 speech entitled "Public Opinion," Phillips even
> declared that "the people never err." He did not mean, of course, that every
> "single verdict which the people of to-day may record" was right, as he
> immediately clarified. But he did believe that "the great democratic tendencies
> of the masses" moved in the direction of right, especially over the long run.
> If, as James Brewer Stewart notes in his biography, Phillips was born "an
> offspring of aristocrats," as a man he became a democrat of democrats.^[Wendell
> Phillips, "Public Opinion," in *Speeches, Lectures and Letters* (Boston: James
> Redpath, 1863), 45-46; James Brewer Stewart, *Wendell Phillips: Liberty's Hero*
> (Baton Rouge: Louisiana State University Press, 1986, 3).]

Solutions by @me_coot:

Unlock 3 remaining solutions by signing in and submitting your own entry
Created by: @wcaleb

17 active golfers, 61 entries

Solutions by @me_coot:
28
#7 - Marcin Szamotulski / @me_coot

09/25/2012 at 09:16AM

29
#>7 - Marcin Szamotulski / @me_coot

09/25/2012 at 09:07AM

37
#>8 - Marcin Szamotulski / @me_coot

09/25/2012 at 08:58AM