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

3218 active golfers, 10989 entries

Leaderboard (lowest score wins):
37
#3061 - Dan Reiland / @dmreiland

12/29/2010 at 10:21PM

37
#3062 - Ben Dowling / @coderholic

12/31/2010 at 05:25PM

37
#3063 - fehtrar / @fehtrar

11/30/2013 at 05:42AM

37
#3064 - Chirag Tailor / @ctailor2

01/27/2014 at 06:52PM

37
#3065 - asdf / @201679996

03/06/2014 at 06:08PM

37
#3066 - Oliver Friedrich / @slith76

09/04/2016 at 07:23AM

37
#3067 - Stop and think / @ms_uncountable

07/05/2017 at 11:41PM

38
#3068 - dschobel / @dschobel

12/29/2010 at 07:57AM

38
#3069 - Jakh Daven / @tuxcanfly

12/29/2010 at 09:52AM

38
#3070 - theshadowhost / @theshadowhost

12/29/2010 at 01:38PM

38
#3071 - Vadim Golub / @vdmgolub

01/19/2011 at 09:17AM

38
#3072 - Evgeny Yakushevsky / @yakushevsky

01/21/2011 at 10:10AM

38
#3073 - Anatolii Sakhnik / @sakhnik

09/30/2013 at 12:57PM

38
#3074 - Derek Barnes / @bigbento

10/17/2013 at 12:56AM

38
#3075 - Patrick Nguyen / @ItsPatricko

01/28/2014 at 11:59PM

38
#3076 - Artur Bekasov / @arturbekasov

02/05/2014 at 02:14PM

38
#3077 - Dan Keast / @DanKeast

07/08/2014 at 07:30AM

38
#3078 - Brian Cantrell / @briancantrell

09/01/2016 at 07:27PM

38
#3079 - vipul / @vipul54995001

11/06/2018 at 08:14AM

38
#3080 - pin2tintin / @pin2tintin

11/08/2018 at 09:23PM

39
#3081 - Emmanuel Mwangi / @emmanuelm

12/28/2010 at 11:49PM

39
#3082 - MrITR / @MrITR

12/29/2010 at 07:14PM

39
#3083 - Ravi S Sinha / @ambidextrousTx

08/29/2012 at 08:33AM

39
#3084 - Cody Frazer / @crfrazer

11/07/2012 at 04:45PM

39
#3085 - Masha Rikhter / @mrikhter

07/09/2014 at 11:59PM

39
#3086 - WAKASUGI 5T111111 / @5t111111

02/09/2015 at 12:35PM

39
#3087 - egormeister / @egormeister1

10/24/2018 at 03:33PM

39
#3088 - tuyen / @tuyen66827418

11/27/2018 at 11:08AM

39
#3089 - Alucardkoten / @alucardkoten

09/19/2019 at 05:21AM

39
#3090 - blub / @agorilladriving

10/15/2019 at 03:31PM