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

1198 active golfers, 5320 entries

Leaderboard (lowest score wins):
11
#241 - Zack Freedman / @freedman_zack

11/07/2020 at 11:12PM

11
#242 - David Kutschke / @D4KU_

11/18/2020 at 08:07PM

11
#243 - quemeraisc / @quemeraisc

11/24/2020 at 10:04AM

12
#244 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#245 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#246 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#247 - LC / @leeren

03/01/2018 at 09:13AM

12
#248 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#249 - Pablo / @suspekt007

04/07/2018 at 09:30AM

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

06/05/2018 at 03:47PM

12
#251 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#252 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#253 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM

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

03/05/2019 at 06:42AM

12
#255 - Tim Dean / @Tmdean

06/06/2019 at 07:14PM

12
#256 - Neil Struthers / @struthersneil

07/17/2019 at 04:01PM

12
#257 - leo / @leo28356948

10/23/2019 at 01:09PM

12
#258 - Lory / @Lory46845742

11/01/2019 at 01:22PM

12
#259 - floyd / @floyd10086

03/10/2020 at 04:24AM

12
#260 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/17/2020 at 06:02PM

12
#261 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 06:22PM

12
#262 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:00PM

12
#263 - Adrián Delgado / @Caritativito

07/12/2020 at 04:28AM

12
#264 - AAbraxas / @AAbraxas1

10/26/2020 at 07:16PM

13
#265 - Felix Boers / @felixboers

02/25/2018 at 02:05PM

13
#266 - Visualizing Medicine / @VisualizeMed

01/13/2019 at 11:07PM

13
#267 - r / @revanthedarth

02/09/2019 at 02:05AM

13
#268 - james_bunch / @james_bunch

04/08/2019 at 07:34PM

13
#269 - Arno / @arnoxmp

05/08/2019 at 09:19PM

13
#270 - shota_ogswr / @shota_ogasawara

11/24/2019 at 03:23PM