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

976 active golfers, 4195 entries

Leaderboard (lowest score wins):
11
#151 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:44PM

11
#152 - abgalphabet / @abgalphabet

01/14/2019 at 03:56PM

12
#153 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#154 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#155 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#156 - LC / @leeren

03/01/2018 at 09:13AM

12
#157 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#158 - Pablo / @suspekt007

04/07/2018 at 09:30AM

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

06/05/2018 at 03:47PM

12
#160 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#161 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#162 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM

13
#163 - Baine Wedlock / @BaineWedlock

08/11/2017 at 06:50AM

13
#164 - Felix Boers / @felixboers

02/25/2018 at 02:05PM

13
#165 - Visualizing Medicine / @VisualizeMed

01/13/2019 at 11:07PM

14
#166 - Petro Тrouq / @zulolosi

11/06/2014 at 06:27AM

14
#167 - Tonda Minařík / @Eari359

11/06/2014 at 12:49PM

14
#168 - Michael Comerford / @MComerford1

11/09/2014 at 03:10AM

14
#169 - Alex Kesling / @AlexKesling

11/10/2014 at 02:50AM

14
#170 - Philipp Aeschbach / @ihbmifqerg

11/10/2014 at 04:58PM

14
#171 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 02:41PM

14
#172 - devos victor / @victordevos

11/16/2014 at 07:00PM

14
#173 - jake romer / @notjakeromer

11/19/2014 at 07:22AM

14
#174 - Alex K / @alex_kononovich

11/24/2014 at 08:28PM

14
#175 - Grisha Pushkov / @readoonly

11/25/2014 at 07:16PM

14
#176 - Vincent Dumoulin / @dumoulinv

11/26/2014 at 02:11AM

14
#177 - Ivan Brennan / @ivanbrennan

11/27/2014 at 02:13AM

14
#178 - Michael Aston / @pennyOsl

11/29/2014 at 09:39AM

14
#179 - Roberto Alegro / @robertoaall

11/30/2014 at 05:46AM

14
#180 - John Diamond / @jcdmnd

12/04/2014 at 11:49AM