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):
11
#181 - Adam Hartz / @awareofnow

08/24/2019 at 03:12AM

11
#182 - Marco💾 / @markomannux

09/01/2019 at 07:48PM

11
#183 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 06:05PM

11
#184 - Nathan Bendich / @neonb88

09/08/2019 at 03:39PM

11
#185 - Yannick Gladow / @y_gldw

09/17/2019 at 03:23PM

11
#186 - Baine Wedlock / @BaineWedlock

09/19/2019 at 02:07PM

11
#187 - Brandon Harrison / @llAboutB

09/24/2019 at 08:10PM

11
#188 - Abnermtj / @Abnerjr19

09/26/2019 at 03:17PM

11
#189 - Miko / @_m_ik_o_

09/29/2019 at 04:37PM

11
#190 - Rui Xue / @ruirayxue

10/01/2019 at 04:26AM

11
#191 - Adrian Craciun / @adi_craciun

10/01/2019 at 08:05PM

11
#192 - Viktor Styrud / @ViktorStyrud

10/02/2019 at 01:30PM

11
#193 - vimgolfer / @vimgolfer7

10/16/2019 at 03:58AM

11
#194 - Chen-Hung Wu / @utah12005

10/17/2019 at 05:32PM

11
#195 - Mario Olofo / @mario_olofo

10/21/2019 at 05:31PM

11
#196 - Ivan Volosyuk / @IvanVolosyuk

10/23/2019 at 12:59PM

11
#197 - Tamás Kárándi / @tkarandi

10/26/2019 at 10:36AM

11
#198 - skamgolf / @skamgolf

11/21/2019 at 02:14AM

11
#199 - vimRunnerUp3000 / @VUp3000

12/20/2019 at 02:46PM

11
#200 - Dan Kilman / @dan_kilman

12/20/2019 at 11:04PM

11
#201 - Delon / @delonleonard

12/27/2019 at 11:47AM

11
#202 - Michael Meixner / @meixner62

01/23/2020 at 01:17PM

11
#203 - Rune Warhuus / @DinkDonkNorway

01/23/2020 at 02:36PM

11
#204 - KingYames / @JamesZeHunter

02/17/2020 at 05:02AM

11
#205 - howanto / @ho_wan_

02/21/2020 at 01:59PM

11
#206 - countime / @countime1

03/09/2020 at 09:55AM

11
#207 - Sean Dewar / @seandewar

03/13/2020 at 10:14PM

11
#208 - Toby Hawkins / @Toby_Hawkins

03/15/2020 at 03:44AM

11
#209 - Tefe / @tefetic

03/21/2020 at 12:40PM

11
#210 - Oleg / @colega

03/21/2020 at 08:11PM