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 1156 remaining solutions by signing in and submitting your own entry
#1157 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

1157 active golfers, 5153 entries

Leaderboard (lowest score wins):
11
#211 - Alexander / @Alexand64026860

03/25/2020 at 03:13PM

11
#212 - Vim Türkçe / @vimturkce

03/26/2020 at 04:15PM

11
#213 - ErQ325 / @EQ325

03/28/2020 at 03:57AM

11
#214 - Kyle X. Clark / @KyXr_Clark

03/29/2020 at 11:07PM

11
#215 - Marco / @Marco24456514

04/02/2020 at 01:37PM

11
#216 - RaylanFox / @RaylanFox

04/06/2020 at 01:55PM

11
#217 - edvrds / @edvrds

04/18/2020 at 07:53PM

11
#218 - せいほう / @FICSQF

04/24/2020 at 05:18AM

11
#219 - Moatvald / @moatvald

05/01/2020 at 07:54AM

11
#220 - Anthony BERNARD / @TweetTontony

05/04/2020 at 01:24PM

11
#221 - Jake Van Alstyne / @jake_va

05/14/2020 at 04:24PM

11
#222 - RockerZZY / @rocker_zzy

05/30/2020 at 04:36AM

11
#223 - Kevin Keefe / @KevinKeefe5

06/03/2020 at 05:30PM

11
#224 - Valdimar / @genkobar

06/05/2020 at 08:16PM

11
#225 - Romain / @djizeuscoco

06/17/2020 at 08:52AM

11
#226 - 大矢元海 / @008Genkai

07/07/2020 at 07:27PM

12
#227 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#228 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#229 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#230 - LC / @leeren

03/01/2018 at 09:13AM

12
#231 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#232 - Pablo / @suspekt007

04/07/2018 at 09:30AM

12
#233 - Daniël De Koker / @daniel_koker

06/05/2018 at 03:47PM

12
#234 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#235 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#236 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM

12
#237 - お-せ-よ- / @OhSayYo

03/05/2019 at 06:42AM

12
#238 - Tim Dean / @Tmdean

06/06/2019 at 07:14PM

12
#239 - Neil Struthers / @struthersneil

07/17/2019 at 04:01PM

12
#240 - leo / @leo28356948

10/23/2019 at 01:09PM