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, 10601 entries

Leaderboard (lowest score wins):
14
#721 - Jeff Sacks / @jeff_sacks

04/01/2011 at 02:37PM

14
#722 - Dragan Cvetinovic / @kawkafi

04/15/2011 at 07:12PM

14
#723 - Bojan Petrovic / @_bojan

04/18/2011 at 11:03PM

14
#724 - Mikael Gustavsson / @slvmnd

04/19/2011 at 03:11PM

14
#725 - こばばー / @symmet

04/24/2011 at 08:27AM

14
#726 - John Mercer / @jfmercer

04/25/2011 at 05:00PM

14
#727 - Jean-Philippe Sirois / @JP_Sirois

04/29/2011 at 02:14AM

14
#728 - dweber / @dwhome

05/03/2011 at 08:06PM

14
#729 - Federico Ramallo / @framallo

05/06/2011 at 03:07AM

14
#730 - Terje Larsen / @terlars

05/09/2011 at 12:40PM

14
#731 - Eduardo Ruiz Macias / @eduarbo

05/18/2011 at 03:57PM

14
#732 - kjrn / @kjrnleto

05/20/2011 at 04:46PM

14
#733 - icdark / @icdark

05/29/2011 at 10:06PM

14
#734 - Teflon Ted t(◕‿◕t) / @teflonted

05/31/2011 at 12:51AM

14
#735 - jcastaneyra / @jcastaneyra

06/09/2011 at 05:13AM

14
#736 - Simon Stemplinger / @simonstemp

06/14/2011 at 12:32PM

14
#737 - José Mota / @josemotanet

06/15/2011 at 11:45PM

14
#738 - Jonathan / @saysjonathan

06/30/2011 at 08:14PM

14
#739 - Hu Junfeng / @junfeng

07/13/2011 at 12:23PM

14
#740 - ineb / @ineb0

07/13/2011 at 11:13PM

14
#741 - Nick Reynolds / @ndreynolds

07/14/2011 at 03:34AM

14
#742 - Jim Infield / @jinfield

07/14/2011 at 04:20AM

14
#743 - Dave / @zzdave13

07/15/2011 at 10:33AM

14
#744 - Eric Gerlach / @egerlach

07/17/2011 at 04:57AM

14
#745 - pet_rock / @pet_rock

07/27/2011 at 04:37PM

14
#746 - (Erik Michaels-Ober) / @sferik

07/29/2011 at 01:50AM

14
#747 - Harry Marr / @harrymarr

07/29/2011 at 03:15AM

14
#748 - Michael Sofaer / @MikeSofaer

07/29/2011 at 06:09AM

14
#749 - Stephen Gordon / @DubsGordon

08/01/2011 at 10:45PM

14
#750 - banana / @sparkleseed

08/03/2011 at 08:18AM