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

1074 active golfers, 4690 entries

Leaderboard (lowest score wins):
11
#181 - Adam Hartz / @awareofnow

08/24/2019 at 03:12AM

11
#182 - Marco Mannucci / @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

12
#187 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#188 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#189 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#190 - LC / @leeren

03/01/2018 at 09:13AM

12
#191 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#192 - Pablo / @suspekt007

04/07/2018 at 09:30AM

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

06/05/2018 at 03:47PM

12
#194 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#195 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#196 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM

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

03/05/2019 at 06:42AM

12
#198 - Tim Dean / @Tmdean

06/06/2019 at 07:14PM

12
#199 - Neil Struthers / @struthersneil

07/17/2019 at 04:01PM

13
#200 - Felix Boers / @felixboers

02/25/2018 at 02:05PM

13
#201 - Visualizing Medicine / @VisualizeMed

01/13/2019 at 11:07PM

13
#202 - r / @revanthedarth

02/09/2019 at 02:05AM

13
#203 - james_bunch / @james_bunch

04/08/2019 at 07:34PM

13
#204 - Arno / @arnoxmp

05/08/2019 at 09:19PM

14
#205 - Petro Тrouq / @zulolosi

11/06/2014 at 06:27AM

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

11/06/2014 at 12:49PM

14
#207 - Michael Comerford / @MComerford1

11/09/2014 at 03:10AM

14
#208 - Alex Kesling / @AlexKesling

11/10/2014 at 02:50AM

14
#209 - Philipp Aeschbach / @ihbmifqerg

11/10/2014 at 04:58PM

14
#210 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 02:41PM