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

3667 active golfers, 12692 entries

Leaderboard (lowest score wins):
13
#1 - Antony Scriven / @antonyscriven

02/09/2011 at 07:03PM

13
#2 - Pavlo Klets / @p01nt

03/19/2011 at 08:46AM

13
#3 - Frederik Mogensen / @fmogensen

03/31/2011 at 11:07AM

13
#4 - Wesley Beary / @geemus

04/02/2011 at 07:45PM

13
#5 - Wei Dai / @clvv42

05/06/2011 at 03:55AM

13
#6 - Emile Swarts / @EmileSwarts

05/28/2011 at 10:31AM

13
#7 - Andrew Nordman / @Cadwallion

05/29/2011 at 03:56AM

13
#8 - dtennant / @dtennant

06/01/2011 at 07:20PM

13
#9 - Justin Love / @wondible

06/04/2011 at 12:17PM

13
#10 - asdaskdjn / @asdaskdjn

06/08/2011 at 09:13PM

13
#11 - Black Wolf / @LoboVimGolf

06/15/2011 at 02:17PM

13
#12 - Rolf Bjaanes / @rolfb

06/15/2011 at 08:33PM

13
#13 - arminas / @arminas

06/22/2011 at 12:57PM

13
#14 - Jack Kinsella / @jackkinsella

07/10/2011 at 07:31PM

13
#15 - sidyll / @sidyll

07/13/2011 at 01:31PM

13
#16 - Sammasati / @sammasati0

07/15/2011 at 03:02PM

13
#17 - Glenn / @glennular

07/17/2011 at 10:18PM

13
#18 - Ed Gibbs / @edward_gibbs

08/02/2011 at 04:39AM

13
#19 - David / @dpa_92

08/02/2011 at 08:55AM

13
#20 - Gary Rennie / @TheGazler

08/03/2011 at 03:32PM

13
#21 - Alexander Yermakov / @Mannavard

08/05/2011 at 12:15PM

13
#22 - Jason Then / @racc69

08/08/2011 at 01:44AM

13
#23 - Nick Morgan / @skilldrick

08/08/2011 at 08:19PM

13
#24 - terjevold / @terjevold

08/09/2011 at 05:30PM

13
#25 - Sam Washington / @shabalay

08/17/2011 at 11:20AM

13
#26 - Nathan Womack / @nwomack

08/22/2011 at 03:11PM

13
#27 - Daniel Stoza / @dstoza

08/25/2011 at 09:25PM

13
#28 - Federico Galassi / @federicogalassi

08/28/2011 at 09:29AM

13
#29 - Tim Tsu / @vimgolfpunk

08/29/2011 at 08:21AM

13
#30 - Christopher Erin / @MCNormalMode

09/16/2011 at 02:40AM