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):
20
#811 - Marco Bompani / @BompaniMarco

09/15/2017 at 02:50PM

20
#812 - Vim Golf / @golf_vim

10/30/2017 at 05:48PM

20
#813 - BarbaJol / @drpproteus

12/30/2017 at 05:56PM

20
#814 - Michael B / @michaderninja

01/01/2018 at 04:58PM

20
#815 - Kaydo Alders / @Yousousen

03/15/2018 at 08:41PM

20
#816 - Paul Draghicescu / @pdragy

03/22/2018 at 06:24AM

20
#817 - 서강훈 / @shirano150

04/04/2018 at 01:39AM

20
#818 - Sean Earle / @Hell_Rok

05/04/2018 at 07:00AM

20
#819 - 최종원 / @lastone9182

07/17/2018 at 12:25AM

20
#820 - Angry Dev / @AngryDev7

12/03/2018 at 10:27PM

20
#821 - vim_ninja / @NinjaVim

08/22/2019 at 04:28AM

20
#822 - abhijeet patil / @abhijeetptl5

09/03/2020 at 02:57AM

20
#823 - Alice / @Alice92541388

10/27/2020 at 10:23PM

20
#824 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 02:30AM

20
#825 - steve / @steve35773420

12/01/2022 at 05:08PM

21
#826 - shawndromat / @shawndromat

11/05/2014 at 02:06AM

21
#827 - Igor Duarte Cardoso / @igordcard

11/11/2014 at 01:41PM

21
#828 - Oliver Christ / @0liverChrist

11/14/2014 at 12:20AM

21
#829 - Charlton Austin / @charltonaustin

11/17/2014 at 12:02AM

21
#830 - Akira Sasaki / @hikomimo

11/20/2014 at 03:56AM

21
#831 - Glauco Pires / @grpires

11/24/2014 at 09:53PM

21
#832 - Nathan Seither / @NathanSeither

11/30/2014 at 03:56AM

21
#833 - Pawan Pawar / @guru_gyaan

12/02/2014 at 07:05AM

21
#834 - Test User / @TestUserIgnore

12/04/2014 at 07:40PM

21
#835 - Rao Zvorovski / @RaoZvorovski

12/05/2014 at 12:08PM

21
#836 - Filipe Dias-L. / @sockyrc

12/06/2014 at 10:24AM

21
#837 - Jonathan Geddes / @j_gds

12/07/2014 at 04:37AM

21
#838 - Daniel Rødskog / @daniero

12/10/2014 at 09:34PM

21
#839 - Allen Toy / @allen_toy

12/12/2014 at 12:03AM

21
#840 - Steve Alison / @Steve_Alison

12/16/2014 at 11:03PM