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 54595b13128576000257a3c1

Basic renumbering

Renumbering Basic.

Start file
10 PRINT "The actual"
15 PRINT "code doesn't"
16 PRINT "really matter."
20 PRINT "Just take"
25 PRINT "care of"
30 PRINT "the numbers."
End file
10 PRINT "The actual"
20 PRINT "code doesn't"
30 PRINT "really matter."
40 PRINT "Just take"
50 PRINT "care of"
60 PRINT "the numbers."

View Diff

2,6c2,6
< 15 PRINT "code doesn't"
< 16 PRINT "really matter."
< 20 PRINT "Just take"
< 25 PRINT "care of"
< 30 PRINT "the numbers."
---
> 20 PRINT "code doesn't"
> 30 PRINT "really matter."
> 40 PRINT "Just take"
> 50 PRINT "care of"
> 60 PRINT "the numbers."

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 1186 remaining solutions by signing in and submitting your own entry
#1187 Dominic Z / @thammaaa - Score: 66 - 12/21/17 @ 12:59
<C-V>GI10<Esc><Esc><C-V>G<C-N><C-A><Esc>ugvgvv<C-A><Esc>uu<C-R><Right><Right><Esc>v<Down><Down><Down><Up><Up><Up><Esc><C-V><Down><Down><Down><Down><Down><Right>d<Left><Left><Down><C-V><Down><Down><Down><Down><C-A><Esc>u<C-V>Gg<C-V><C-A><Esc>u<C-V>Gg<C-A>ZZ

0 comments


Created by: @udioica

1187 active golfers, 5279 entries

Leaderboard (lowest score wins):
14
#451 - spock900 / @spock9002

08/24/2019 at 10:52AM

14
#452 - Grzegorz Andrzejowski / @AndrzejowskiG

08/29/2019 at 02:16PM

14
#453 - JimmyGymglish / @JGymglish

01/14/2020 at 02:20PM

14
#454 - BESSENG A IREH Guy / @guybesseng

01/29/2020 at 10:02PM

14
#455 - BnnGolfer / @BnnGolfer

03/27/2020 at 04:48PM

14
#456 - Vildu / @Vildu3

09/30/2020 at 12:40PM

15
#457 - Hans Liu / @zhansliu

11/05/2014 at 05:29AM

15
#458 - Caek / @Caek_

11/05/2014 at 07:36AM

15
#459 - Tim Chase / @gumnos

11/05/2014 at 11:08AM

15
#460 - Jakob / @jajob

11/06/2014 at 05:56AM

15
#461 - Dane Summers / @dsummersl

11/12/2014 at 03:10PM

15
#462 - Alexandre Jouandin / @Allezxandre

11/19/2014 at 08:04PM

15
#463 - Jens Weggemann / @JensWeggemann

11/29/2014 at 12:47PM

15
#464 - kobby / @_kafdot_

12/08/2014 at 10:09PM

15
#465 - JR Boyens / @jboyens

12/18/2014 at 05:34PM

15
#466 - winterlight / @winterlight4

12/25/2014 at 11:53AM

15
#467 - Maximiliano Padulo / @mpadulo

12/26/2014 at 11:42PM

15
#468 - Jordana Lachow / @TomofBedlam

01/04/2015 at 03:17AM

15
#469 - no name / @vimgol

01/30/2015 at 03:48PM

15
#470 - xieyh11 / @xieyh11

02/13/2015 at 04:20AM

15
#471 - Naseem Al-Naji / @NaseemAlnaji

02/13/2015 at 10:58PM

15
#472 - E Both / @enboth

04/06/2015 at 08:15AM

15
#473 - antew / @antewcode

06/03/2015 at 03:12AM

15
#474 - Robert Robertson / @RobertC3228687

06/03/2015 at 04:30PM

15
#475 - Mutter Mumble / @muttermumble

06/17/2015 at 02:55PM

15
#476 - Louis Burke / @LambdaABeta

07/07/2015 at 06:14PM

15
#477 - Piotr Kowenzowski / @sacherus

02/19/2016 at 02:42PM

15
#478 - Yanis KHORSI / @YanisKHORSI

03/25/2016 at 03:42PM

15
#479 - Nigel Rahkola / @NinjaRahkola

05/11/2016 at 06:04AM

15
#480 - MichaƂ Dytko / @DytkoM

12/19/2016 at 11:21AM