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

Simple text editing with Vim

Make the pairs of lines match up by making each second line same as first

Start file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
End file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for "Vi IMproved"

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode

View Diff

5c5
< The name "Vim" is an acronym for
---
> The name "Vim" is an acronym for "Vi IMproved"
9c9
< Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga
---
> Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
13c13
< Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
---
> Vim has a vi compatibility mode

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 3237 remaining solutions by signing in and submitting your own entry
#3238 M. C. / @mczerkawski - Score: 918 - 12/29/10 @ 09:07
k<Down><Down><Down><Right><Right><Right><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> <Left><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right> "Vi IMproved"<Down><Down><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Up><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Left><BS><BS><BS><BS><BS><BS><BS><Del><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Down><Esc><Right><Down><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Up><Up><Up><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left>o<BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>i<BS>originally <Right><Right><Right><Right><Esc>:w<CR>:wq<CR>

0 comments


Created by: @igrigorik

3238 active golfers, 11047 entries

Leaderboard (lowest score wins):
42
#3121 - Paul Tarjan / @ptarjan

12/28/2010 at 09:07PM

42
#3122 - Alfredo Deza / @alfredodeza

12/29/2010 at 01:42AM

42
#3123 - Eddie Dunn / @imoleet

08/07/2013 at 09:32AM

42
#3124 - LLiseil / @lliseil

07/14/2014 at 04:32PM

42
#3125 - h talk / @talkto_me

03/22/2015 at 03:44PM

43
#3126 - ssmithstone / @ssmithstone

12/28/2010 at 07:53PM

43
#3127 - Matt Behrens / @AskedRelic

12/28/2010 at 08:23PM

43
#3128 - Akeem Adeniji / @akeem

12/29/2010 at 12:29AM

43
#3129 - marklu / @marklu

12/29/2010 at 10:11AM

43
#3130 - Scott Abernethy / @scott_abernethy

12/31/2010 at 07:02AM

43
#3131 - tristan escalada / @tescalada

01/04/2011 at 10:10PM

43
#3132 - Josh / @beau_jo

08/01/2011 at 07:52PM

43
#3133 - Timothy Holland / @th0114nd

07/28/2012 at 03:31AM

44
#3134 - Derek Hammer / @hammerdr

12/28/2010 at 08:02PM

44
#3135 - John Cooper / @choffee

06/24/2013 at 03:47PM

44
#3136 - Jonathan Brophy / @jjbrophy69

09/08/2013 at 05:53PM

44
#3137 - jiangchuan / @tommy_he

11/15/2014 at 07:02AM

44
#3138 - xyz / @menhej

02/02/2018 at 01:02PM

44
#3139 - Kairew / @Kairew1

12/30/2019 at 05:04PM

45
#3140 - GiaNU / @sgianazza

01/31/2012 at 03:45PM

45
#3141 - Victor Salgado / @mcsalgado

08/07/2012 at 08:42PM

45
#3142 - Nico Kruger / @nicok_za

11/09/2012 at 11:30AM

45
#3143 - Jon Swenson / @jmswen

02/13/2017 at 05:28AM

46
#3144 - Wes Maldonado / @wes

12/28/2010 at 09:57PM

46
#3145 - CiarĂ¡n Walsh / @cwalsh

12/28/2010 at 10:59PM

46
#3146 - Giorgos Giannoutsos / @nuc

08/21/2013 at 09:30PM

46
#3147 - Joseph Chen / @saphire121jc

05/07/2018 at 07:43PM

46
#3148 - KlondikeBaer / @BaerKlondike

10/13/2019 at 02:58PM

47
#3149 - Kyle Slattery / @kyleslattery

12/28/2010 at 10:23PM

47
#3150 - Jody Hamilton / @JodyHamilton

12/29/2010 at 06:08PM