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

3034 active golfers, 10385 entries

Leaderboard (lowest score wins):
13
#31 - Ben Sherman / @bensherman

09/26/2011 at 11:21PM

13
#32 - p0ckets / @p0ckets

10/06/2011 at 07:43PM

13
#33 - vimja / @vimja666

10/10/2011 at 09:41PM

13
#34 - Ravil Bayramgalin / @brainopia

10/14/2011 at 05:02PM

13
#35 - Dmitry Bashkatov / @dbashkatov

10/31/2011 at 12:48PM

13
#36 - Gordon DuQuesnay / @gduquesnay

11/23/2011 at 06:18PM

13
#37 - You-Siang Lin / @yslinnctu

11/29/2011 at 01:11PM

13
#38 - Kevin / @exclipy

12/01/2011 at 11:07AM

13
#39 - Travis Jeffery / @travisjeffery

12/07/2011 at 09:15PM

13
#40 - Gavin Hughes / @gavinhughes

12/12/2011 at 01:20PM

13
#41 - Al / @96258

12/12/2011 at 03:28PM

13
#42 - Ali Moeeny / @alimoeeny

12/13/2011 at 08:44PM

13
#43 - Andrew Flockhart / @andruflockhart

12/13/2011 at 10:39PM

13
#44 - Pei-Lun Lee / @ypcatw

12/16/2011 at 05:41AM

13
#45 - Sean O'Hara / @_sohara

12/20/2011 at 09:18PM

13
#46 - Raj Sahae / @rajsahae

12/20/2011 at 11:35PM

13
#47 - George South / @ecuageo

12/22/2011 at 10:31PM

13
#48 - Jeff Siegel / @jdsiegel

12/24/2011 at 08:40AM

13
#49 - Tara Bass / @tara_bass

12/25/2011 at 06:35PM

13
#50 - woodspock / @woodspock

12/30/2011 at 08:03PM

13
#51 - omahn / @omahn

01/01/2012 at 06:19PM

13
#52 - peter shih / @peter50216

01/06/2012 at 08:41AM

13
#53 - Song Zheng / @songz

01/23/2012 at 08:38PM

13
#54 - Calvin Condon / @ccondon

01/30/2012 at 02:40AM

13
#55 - Tuxz / @Tuxz

01/30/2012 at 12:18PM

13
#56 - Sergio Benitez / @Sergio965

01/30/2012 at 05:35PM

13
#57 - Marcin Górnik / @gornikm

01/30/2012 at 09:52PM

13
#58 - Renat Aksitov / @Korvin79

02/02/2012 at 02:36AM

13
#59 - Christian Welle / @welle_tw

02/04/2012 at 07:18PM

13
#60 - Zeh Rizzatti / @zehrizzatti

02/05/2012 at 08:14PM