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 193 remaining solutions by signing in and submitting your own entry
#194 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

194 active golfers, 316 entries

Leaderboard (lowest score wins):
17
#61 - sathish316 / @sathish316

11/19/2012 at 08:57AM

17
#62 - Vimgolf Pikob / @vimgolfpikob

12/08/2012 at 09:46PM

17
#63 - Hubba / @HubbaBubbaFett

12/11/2012 at 07:39PM

17
#64 - Alec Goebel / @zego5360

01/07/2013 at 01:50AM

17
#65 - Jimmy Mabey / @mabeyj

01/23/2013 at 01:12AM

17
#66 - Lieven Keersmaekers / @LievenKeersmaek

01/31/2013 at 09:25PM

17
#67 - xavier kt / @xav_kt

02/04/2013 at 10:58PM

17
#68 - teocx / @teocx

02/15/2013 at 03:35PM

17
#69 - Kai Yuan / @kentyuan

02/21/2013 at 02:36PM

17
#70 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55

04/08/2013 at 01:37AM

17
#71 - Jesse Nazario / @JesseNazario

04/18/2013 at 02:44PM

17
#72 - Richard John Soni / @richsoni

05/24/2013 at 09:47PM

17
#73 - Eric Potter / @pottereric

06/12/2013 at 11:54AM

17
#74 - Javier Blanco / @jbgutierrez

06/20/2013 at 10:52PM

17
#75 - Steve Tjoa / @stevetjoa

07/03/2013 at 07:45PM

17
#76 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 01:46AM

17
#77 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

07/25/2013 at 03:26AM

17
#78 - Nathan / @n8kowald

07/29/2013 at 09:14PM

17
#79 - James / @Dronak

09/03/2013 at 01:16AM

17
#80 - foo / @foo88832727

10/19/2013 at 04:47PM

17
#81 - cj / @cj01101

10/22/2013 at 05:28PM

17
#82 - A. N. / @arez42

10/25/2013 at 09:26AM

17
#83 - Heath Patterson / @HeathPatterson

12/04/2013 at 10:02PM

17
#84 - Filip Szczepanski / @FreeFull

01/25/2014 at 06:53PM

17
#85 - Joonas Pihlajamaa / @jokkebk

02/21/2014 at 03:46PM

17
#86 - RobertT / @techrt2050

03/26/2014 at 10:20PM

17
#87 - Benoit d'Oncieu / @bdoncieu

05/23/2014 at 03:48PM

17
#88 - Ram Tamtam / @ramtamtamtam

07/04/2014 at 01:38PM

17
#89 - Caek / @Caek_

07/29/2014 at 01:35AM

17
#90 - Herr Oppermann / @HerrOppermann

09/18/2014 at 09:36AM