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

3099 active golfers, 10600 entries

Leaderboard (lowest score wins):
14
#691 - justin / @j10

01/17/2011 at 02:15AM

14
#692 - ls lahrs / @lslah

01/17/2011 at 03:12PM

14
#693 - BigBlackBear / @BigBlackBear

01/17/2011 at 09:18PM

14
#694 - Misha (Mike) Granin / @Granin

01/19/2011 at 07:15AM

14
#695 - Andrey Ivanov / @Bytamine

01/19/2011 at 10:22AM

14
#696 - Kristof Jozsa / @kjozsa

01/19/2011 at 02:35PM

14
#697 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 04:03PM

14
#698 - Dezső Zoltán / @zakiazigazi

01/22/2011 at 06:44AM

14
#699 - thorir danielsson / @thorird

01/23/2011 at 03:46PM

14
#700 - Alexander Zolotov / @alex_zolotov

01/26/2011 at 06:31AM

14
#701 - Evguenyi G / @evg_g

01/26/2011 at 02:32PM

14
#702 - Mateusz Zawisza / @mateuszzawisza

01/26/2011 at 07:02PM

14
#703 - Matthieu Honel / @ocus

01/31/2011 at 11:45PM

14
#704 - iCross / @iCrossOfficial

02/01/2011 at 03:18PM

14
#705 - Dima / @malphunction

02/02/2011 at 11:11AM

14
#706 - Jed Hurt / @meekish

02/05/2011 at 07:58AM

14
#707 - Arthur Chiu / @arthur_chiu

02/05/2011 at 11:08PM

14
#708 - Rich Cheng / @sedm0784

02/10/2011 at 03:36PM

14
#709 - Christopher Sloey / @chrisasaur

02/14/2011 at 12:41AM

14
#710 - mlkjih / @mlkjih

02/15/2011 at 11:49AM

14
#711 - vg / @vimgolfer

02/19/2011 at 10:09PM

14
#712 - Jeroen / @teranex

03/02/2011 at 10:33PM

14
#713 - keo / @keo

03/03/2011 at 04:48PM

14
#714 - Ruy Diaz / @diazruy

03/08/2011 at 06:31PM

14
#715 - Steve Newell / @newellista

03/17/2011 at 08:39PM

14
#716 - Avinash Baliga / @avinashbaliga

03/20/2011 at 02:37PM

14
#717 - Jon Olick / @JonOlick

03/25/2011 at 06:02AM

14
#718 - Eric Bock / @ericbock

03/25/2011 at 06:17AM

14
#719 - Thom Hughes / @thom_hughes_1

03/28/2011 at 12:12AM

14
#720 - Jeff Sacks / @jeff_sacks

04/01/2011 at 02:37PM