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):
36
#3241 - risto vire / @risro

12/29/2010 at 01:11PM

36
#3242 - 5hIYi80Y007 / @5Y007

12/02/2013 at 03:48PM

36
#3243 - Alex Baldwin / @alexbaldwin

02/03/2014 at 06:13AM

36
#3244 - dan sweeting / @itsjustcode

11/11/2015 at 10:57PM

36
#3245 - Emil Braserud / @Erdustiggen

03/17/2019 at 08:43PM

37
#3246 - Alexey Komissarouk / @alexeymk

12/29/2010 at 02:04PM

37
#3247 - Dan Reiland / @dmreiland

12/29/2010 at 10:21PM

37
#3248 - Ben Dowling / @coderholic

12/31/2010 at 05:25PM

37
#3249 - fehtrar / @fehtrar

11/30/2013 at 05:42AM

37
#3250 - Chirag Tailor / @ctailor2

01/27/2014 at 06:52PM

37
#3251 - asdf / @201679996

03/06/2014 at 06:08PM

37
#3252 - Oliver Friedrich / @slith76

09/04/2016 at 07:23AM

37
#3253 - Stop and think / @ms_uncountable

07/05/2017 at 11:41PM

37
#3254 - Carlos / @Karu75414928

11/14/2020 at 06:16PM

38
#3255 - dschobel / @dschobel

12/29/2010 at 07:57AM

38
#3256 - Jakh Daven / @tuxcanfly

12/29/2010 at 09:52AM

38
#3257 - theshadowhost / @theshadowhost

12/29/2010 at 01:38PM

38
#3258 - Vadim Golub / @vdmgolub

01/19/2011 at 09:17AM

38
#3259 - Evgeny Yakushevsky / @yakushevsky

01/21/2011 at 10:10AM

38
#3260 - Anatolii Sakhnik / @sakhnik

09/30/2013 at 12:57PM

38
#3261 - Derek Barnes / @bigbento

10/17/2013 at 12:56AM

38
#3262 - Patrick Nguyen / @ItsPatricko

01/28/2014 at 11:59PM

38
#3263 - Artur Bekasov / @arturbekasov

02/05/2014 at 02:14PM

38
#3264 - Dan Keast / @DanKeast

07/08/2014 at 07:30AM

38
#3265 - Brian Cantrell / @briancantrell

09/01/2016 at 07:27PM

38
#3266 - vipul / @vipul54995001

11/06/2018 at 08:14AM

38
#3267 - pin2tintin / @pin2tintin

11/08/2018 at 09:23PM

38
#3268 - Chris Chung / @Demeter_Garden

12/08/2021 at 05:08AM

39
#3269 - Emmanuel Mwangi / @emmanuelm

12/28/2010 at 11:49PM

39
#3270 - MrITR / @MrITR

12/29/2010 at 07:14PM