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 1268 remaining solutions by signing in and submitting your own entry
#1269 boumediane1 / @boumediane1 - Score: 72 - 01/09/25 @ 22:34
<C-V>Glr10u<C-V>jjjjjlr<Esc>s10<Esc><Esc>hjklhvl<C-V>jjjjjojg<C-A><Esc>u<C-V>jjjjojg<C-A><Esc>ukk<C-V>jjjjjojg<C-A><Esc><Esc>:wa<CR>:q<CR>

0 comments


Created by: @udioica

1269 active golfers, 5683 entries

Leaderboard (lowest score wins):
14
#481 - aselaIllayaparachchi / @asela38

09/14/2017 at 03:51AM

14
#482 - garry quested / @GQuested

09/27/2017 at 08:40AM

14
#483 - BouboulouVimGolf / @BouboulouVG

11/02/2017 at 07:46AM

14
#484 - えるざっぷ / @_elzup_

11/03/2017 at 09:39AM

14
#485 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 07:36AM

14
#486 - bruno / @LokoPoggi

02/24/2018 at 07:45PM

14
#487 - frank p / @icedearth55

05/05/2018 at 05:26PM

14
#488 - Romeo Valentin / @Seecez

07/29/2018 at 08:36PM

14
#489 - David Findley / @thefindley

09/07/2018 at 03:17AM

14
#490 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 04:13AM

14
#491 - Sam Kim / @samkimhis

10/23/2018 at 12:55AM

14
#492 - Finn Francis / @FinnFrancis

10/30/2018 at 10:39PM

14
#493 - Patrick Lavin / @LavinComputes

01/30/2019 at 07:31PM

14
#494 - Vimfiz / @vimfiz

04/09/2019 at 10:54PM

14
#495 - eric huang / @EricGodhand4826

05/04/2019 at 07:08PM

14
#496 - Crystal L / @Cartsly

07/13/2019 at 11:20PM

14
#497 - spock900 / @spock9002

08/24/2019 at 10:52AM

14
#498 - Grzegorz Andrzejowski / @AndrzejowskiG

08/29/2019 at 02:16PM

14
#499 - JimmyGymglish / @JGymglish

01/14/2020 at 02:20PM

14
#500 - BESSENG A IREH Guy / @guybesseng

01/29/2020 at 10:02PM

14
#501 - BnnGolfer / @BnnGolfer

03/27/2020 at 04:48PM

14
#502 - Vildu / @Vildu3

09/30/2020 at 12:40PM

14
#503 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 10:09PM

14
#504 - Olivier Bégassat / @zk_evm

06/14/2023 at 09:15PM

14
#505 - Kory Newton / @korynewton

02/03/2024 at 10:46PM

15
#506 - Hans Liu / @zhansliu

11/05/2014 at 05:29AM

15
#507 - Caek / @Caek_

11/05/2014 at 07:36AM

15
#508 - Tim Chase / @gumnos

11/05/2014 at 11:08AM

15
#509 - Jakob / @jajob

11/06/2014 at 05:56AM

15
#510 - Dane Summers / @dsummersl

11/12/2014 at 03:10PM