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

3130 active golfers, 10703 entries

Leaderboard (lowest score wins):
14
#721 - vg / @vimgolfer

02/19/2011 at 10:09PM

14
#722 - Jeroen / @teranex

03/02/2011 at 10:33PM

14
#723 - keo / @keo

03/03/2011 at 04:48PM

14
#724 - Ruy Diaz / @diazruy

03/08/2011 at 06:31PM

14
#725 - Steve Newell / @newellista

03/17/2011 at 08:39PM

14
#726 - Avinash Baliga / @avinashbaliga

03/20/2011 at 02:37PM

14
#727 - Jon Olick / @JonOlick

03/25/2011 at 06:02AM

14
#728 - Eric Bock / @ericbock

03/25/2011 at 06:17AM

14
#729 - Thom Hughes / @thom_hughes_1

03/28/2011 at 12:12AM

14
#730 - Jeff Sacks / @jeff_sacks

04/01/2011 at 02:37PM

14
#731 - Dragan Cvetinovic / @kawkafi

04/15/2011 at 07:12PM

14
#732 - Bojan Petrovic / @_bojan

04/18/2011 at 11:03PM

14
#733 - Mikael Gustavsson / @slvmnd

04/19/2011 at 03:11PM

14
#734 - こばばー / @symmet

04/24/2011 at 08:27AM

14
#735 - John Mercer / @jfmercer

04/25/2011 at 05:00PM

14
#736 - Jean-Philippe Sirois / @JP_Sirois

04/29/2011 at 02:14AM

14
#737 - dweber / @dwhome

05/03/2011 at 08:06PM

14
#738 - Federico Ramallo / @framallo

05/06/2011 at 03:07AM

14
#739 - Terje Larsen / @terlars

05/09/2011 at 12:40PM

14
#740 - Eduardo Ruiz Macias / @eduarbo

05/18/2011 at 03:57PM

14
#741 - kjrn / @kjrnleto

05/20/2011 at 04:46PM

14
#742 - icdark / @icdark

05/29/2011 at 10:06PM

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

05/31/2011 at 12:51AM

14
#744 - jcastaneyra / @jcastaneyra

06/09/2011 at 05:13AM

14
#745 - Simon Stemplinger / @simonstemp

06/14/2011 at 12:32PM

14
#746 - José Mota / @josemotanet

06/15/2011 at 11:45PM

14
#747 - Jonathan / @saysjonathan

06/30/2011 at 08:14PM

14
#748 - Hu Junfeng / @junfeng

07/13/2011 at 12:23PM

14
#749 - ineb / @ineb0

07/13/2011 at 11:13PM

14
#750 - Nick Reynolds / @ndreynolds

07/14/2011 at 03:34AM