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

Get rid of html tags

Want to read more about Vim's background? Then get rid of those html tags...

Start file
<h1>What Vim Can Do</h1> 
<p> 
Vim is an advanced text editor that seeks to provide the power of
the de-facto Unix editor 'Vi', with a more complete feature set.
It's useful whether you're <a href='viusers.php'>already using vi</a> or <a
href='others.php'>using a different editor</a>.  Users of Vim 5 and 6 should
consider upgrading to Vim 7.  The main advantages of Vim 6 compared to Vim 5 
can be found on <a href='vim5users.php'>this page</a>.
</p> 
 
<h1>A General Overview</h1> 
 
<a href="http://tnerual.eriogerg.free.fr/0xBABAF000L/10_en.html"><img src='/images/0xbabaf000l.png' alt="Emaks-Vim-Notepad comic" width="800" height="254"></a> 
Copyright (c) 2007 Laurent Gregoire
 
<h4>What Is Vim?</h4> 
<p> 
Vim is a highly configurable text editor built to enable efficient text
editing. It is an improved version of the vi editor distributed with
most UNIX systems.  
<p> 
Vim is often called a "programmer's editor," and so useful for
programming that many consider it an entire <abbr title='integrated
development environment'>IDE</abbr>.  It's not just for programmers,
though.  Vim is perfect for all kinds of text editing, from composing
email to editing configuration files.
</p> 
<p> 
Despite what the above comic suggests, Vim can be configured to work in a very
simple (Notepad-like) way, called evim or Easy Vim.
</p> 
 
<h4>What Vim Is Not?</h4> 
<p> 
Vim isn't an editor designed to hold its users' hands.  It is a tool,
the use of which must be learned.
</p> 
 
<p> 
Vim isn't a word processor.  Although it can display text with various
forms of highlighting and formatting, it isn't there to provide WYSIWYG
editing of typeset documents.  (It is great for editing TeX, though.)
</p> 
 
<h4>Vim's License</h4> 
<p> 
Vim is charityware.  Its license is GPL-compatible, so it's
distributed freely, but we ask that if you find it useful you make a
donation to help children in Uganda through the
<a href='http://iccf-holland.org/'>ICCF</a>.  The full license text can be
found in the <a href='http://vimdoc.sourceforge.net/htmldoc/uganda.html#license'>documentation</a>.
Much more information about charityware on
<A HREF="http://Charityware.info/">Charityware.info</a>.
</p> 
End file
What Vim Can Do 
 
Vim is an advanced text editor that seeks to provide the power of
the de-facto Unix editor 'Vi', with a more complete feature set.
It's useful whether you're already using vi or <a
href='others.php'>using a different editor.  Users of Vim 5 and 6 should
consider upgrading to Vim 7.  The main advantages of Vim 6 compared to Vim 5 
can be found on this page.
 
 
A General Overview 
 
 
Copyright (c) 2007 Laurent Gregoire
 
What Is Vim? 
 
Vim is a highly configurable text editor built to enable efficient text
editing. It is an improved version of the vi editor distributed with
most UNIX systems.  
 
Vim is often called a "programmer's editor," and so useful for
programming that many consider it an entire <abbr title='integrated
development environment'>IDE.  It's not just for programmers,
though.  Vim is perfect for all kinds of text editing, from composing
email to editing configuration files.
 
 
Despite what the above comic suggests, Vim can be configured to work in a very
simple (Notepad-like) way, called evim or Easy Vim.
 
 
What Vim Is Not? 
 
Vim isn't an editor designed to hold its users' hands.  It is a tool,
the use of which must be learned.
 
 
 
Vim isn't a word processor.  Although it can display text with various
forms of highlighting and formatting, it isn't there to provide WYSIWYG
editing of typeset documents.  (It is great for editing TeX, though.)
 
 
Vim's License 
 
Vim is charityware.  Its license is GPL-compatible, so it's
distributed freely, but we ask that if you find it useful you make a
donation to help children in Uganda through the
ICCF.  The full license text can be
found in the documentation.
Much more information about charityware on
Charityware.info.
 

View Diff

1,2c1,2
< <h1>What Vim Can Do</h1> 
< <p> 
---
> What Vim Can Do 
>  
5,6c5,6
< It's useful whether you're <a href='viusers.php'>already using vi</a> or <a
< href='others.php'>using a different editor</a>.  Users of Vim 5 and 6 should
---
> It's useful whether you're already using vi or <a
> href='others.php'>using a different editor.  Users of Vim 5 and 6 should
8,9c8,11
< can be found on <a href='vim5users.php'>this page</a>.
< </p> 
---
> can be found on this page.
>  
>  
> A General Overview 
11d12
< <h1>A General Overview</h1> 
13d13
< <a href="http://tnerual.eriogerg.free.fr/0xBABAF000L/10_en.html"><img src='/images/0xbabaf000l.png' alt="Emaks-Vim-Notepad comic" width="800" height="254"></a> 
16,17c16,17
< <h4>What Is Vim?</h4> 
< <p> 
---
> What Is Vim? 
>  
21c21
< <p> 
---
>  
24c24
< development environment'>IDE</abbr>.  It's not just for programmers,
---
> development environment'>IDE.  It's not just for programmers,
27,28c27,28
< </p> 
< <p> 
---
>  
>  
31d30
< </p> 
33,34c32,34
< <h4>What Vim Is Not?</h4> 
< <p> 
---
>  
> What Vim Is Not? 
>  
37d36
< </p> 
39c38,39
< <p> 
---
>  
>  
43d42
< </p> 
45,46c44,46
< <h4>Vim's License</h4> 
< <p> 
---
>  
> Vim's License 
>  
50,51c50,51
< <a href='http://iccf-holland.org/'>ICCF</a>.  The full license text can be
< found in the <a href='http://vimdoc.sourceforge.net/htmldoc/uganda.html#license'>documentation</a>.
---
> ICCF.  The full license text can be
> found in the documentation.
53,54c53,54
< <A HREF="http://Charityware.info/">Charityware.info</a>.
< </p> 
---
> Charityware.info.
>  

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 206 remaining solutions by signing in and submitting your own entry
#207 Thibault Jouan / @tjouan - Score: 85 - 12/29/10 @ 22:11
:%s/^\(<[^>]*>\)*\(.*\)<[^>]*>/\2/<CR>:5<CR>:<Up><Up><Home><Right><BS><CR>:8<CR>:<Up><Up><CR>:51<CR>:<Up><Up><CR>:wq<CR>

0 comments


Created by: @mike_adolphs

207 active golfers, 341 entries

Leaderboard (lowest score wins):
17
#31 - Przemysław Pawełczyk / @przemoc86

12/30/2010 at 08:14PM

17
#32 - Unsouled / @unsouled0

12/31/2010 at 01:21AM

17
#33 - Peter Anselmo / @peter_anselmo

12/31/2010 at 03:30AM

17
#34 - Juan C. Muller / @juancmuller

12/31/2010 at 04:49AM

17
#35 - Vincent Isambart / @vincentisambart

12/31/2010 at 11:08AM

17
#36 - Marco Fontani / @mfontani

12/31/2010 at 02:54PM

17
#37 - Tim Chase / @gumnos

12/31/2010 at 08:17PM

17
#38 - Casey W Crites / @caseycrites

12/31/2010 at 09:30PM

17
#39 - larsd / @larsd

12/31/2010 at 10:02PM

17
#40 - rabidpraxis / @rabidpraxis

01/01/2011 at 12:22AM

17
#41 - Balkoth / @_Balkoth_

01/01/2011 at 01:51AM

17
#42 - Cristi Balan / @evilchelu

01/01/2011 at 06:01AM

17
#43 - Joe Auricchio / @jauricchio

01/01/2011 at 07:53AM

17
#44 - Stephan Weller / @stephan_weller

01/01/2011 at 07:11PM

17
#45 - derp derp / @derp__

01/01/2011 at 11:10PM

17
#46 - Pierre / @Pihour

01/02/2011 at 07:37AM

17
#47 - Pete Johns / @johnsyweb

01/02/2011 at 01:08PM

17
#48 - garygordon / @garygordon

01/02/2011 at 05:29PM

17
#49 - Robin / @randuin

01/02/2011 at 08:16PM

17
#50 - Wei Dai / @clvv42

01/02/2011 at 11:42PM

17
#51 - El Jacko / @mrjackinc

01/03/2011 at 03:04AM

17
#52 - Johannes Martinsson / @moxiba

01/04/2011 at 03:20PM

17
#53 - Karel Vervaeke / @karel1980

01/05/2011 at 08:10AM

17
#54 - Ravil Bayramgalin / @brainopia

01/05/2011 at 07:36PM

17
#55 - Federico Galassi / @federicogalassi

02/02/2011 at 02:15AM

17
#56 - Renat Aksitov / @Korvin79

02/05/2012 at 09:41AM

17
#57 - Zeh Rizzatti / @zehrizzatti

02/07/2012 at 03:35AM

17
#58 - Jyun-Fan Tsai / @fakecolor

02/17/2012 at 03:11PM

17
#59 - drupalovereasy / @drupalovereasy

04/28/2012 at 07:59AM

17
#60 - P.B. / @PlasticBarnacle

05/02/2012 at 04:51AM