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

3418 active golfers, 11657 entries

Leaderboard (lowest score wins):
28
#3061 - TchiKong / @tchikong

01/22/2011 at 05:28PM

28
#3062 - Mike Ballou / @ballou88

02/24/2011 at 10:20PM

28
#3063 - Joseph Hsu / @jhsu

03/24/2011 at 07:19PM

28
#3064 - cameron / @cameronaustgen

09/04/2011 at 03:39AM

28
#3065 - Mike Skalnik / @skalnik

10/02/2011 at 01:46AM

28
#3066 - yoshi / @yoshiiiine

10/22/2011 at 01:12AM

28
#3067 - johan wester / @wester87

11/12/2011 at 12:24PM

28
#3068 - Craig Martek / @cregatron

01/26/2012 at 04:16PM

28
#3069 - Rap Game Dan Aykroyd / @rapdanaykroyd

02/02/2012 at 06:49PM

28
#3070 - Ezekiel Templin / @ezkl

02/03/2012 at 07:49AM

28
#3071 - Dylan Harrington / @dylanharrington

02/08/2012 at 04:06AM

28
#3072 - Lee Gould / @LeeGould

02/09/2012 at 04:43PM

28
#3073 - Mattias Warnqvist / @mwq

04/08/2012 at 03:13PM

28
#3074 - Anatoliy Pronin / @IPronin

04/09/2012 at 03:06PM

28
#3075 - Jingjing Duan / @duanjingjing

07/28/2012 at 12:23AM

28
#3076 - Jesse House / @house9twx

06/26/2013 at 11:54PM

28
#3077 - SayreBlades / @SayreBlades

07/16/2013 at 02:24PM

28
#3078 - Rodrigo Limão / @rlimaoc

10/01/2013 at 10:49PM

28
#3079 - John Moon / @johnmoon6

11/20/2013 at 02:04PM

28
#3080 - Hannes Käufler / @hanneskaeufler

12/21/2013 at 10:53AM

28
#3081 - MEERA / @benmeera

03/20/2014 at 12:24PM

28
#3082 - Guilherme Berger / @gberger42

06/27/2014 at 06:59PM

28
#3083 - timrich / @timrich

12/05/2014 at 01:37PM

28
#3084 - Gianluca Scacco / @gscacco

01/07/2015 at 11:45AM

28
#3085 - Hiroyoshi Deki / @dek1chan

02/09/2015 at 12:26PM

28
#3086 - Harshavardhan Kittur / @hbk1517

09/22/2015 at 08:27PM

28
#3087 - ~ben / @nebsirrah

06/20/2017 at 04:48PM

28
#3088 - johnkershaw / @johnkershaw

09/06/2017 at 12:06PM

28
#3089 - d8d90d / @d8d90d

08/18/2018 at 10:54PM

28
#3090 - MEschenbacher / @eschenbacher_m

12/28/2018 at 10:51AM