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

1072 active golfers, 4682 entries

Leaderboard (lowest score wins):
18
#541 - Zombo Tron / @zombo_tron

09/07/2016 at 08:04AM

18
#542 - Denis Shevchenko / @denchenko

10/26/2016 at 08:39AM

18
#543 - KangHun Seo / @shirano80

10/31/2016 at 07:34AM

18
#544 - John Barbero Unenge / @JBarberU

11/09/2016 at 02:16PM

18
#545 - Liam S Ismail / @AC01Y

12/08/2016 at 03:17PM

18
#546 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 05:09PM

18
#547 - Jan Eisenhauer / @EisenhauerJan

12/23/2016 at 11:23PM

18
#548 - Avimgolfer / @l718232

01/30/2017 at 05:05PM

18
#549 - Victorien Lorcy / @LorcyVictorien

02/06/2017 at 03:04PM

18
#550 - Sergey Ryabko / @RyabkoSergey

03/31/2017 at 06:37PM

18
#551 - Pratik Prasad / @pratik

04/26/2017 at 03:34PM

18
#552 - Jerry Wu / @AzureSpectra

05/05/2017 at 11:12PM

18
#553 - grigouille / @grigouille2

07/08/2017 at 05:36PM

18
#554 - jirgn / @jirgn

09/23/2017 at 08:48PM

18
#555 - Stephen Watkin / @stephen_watkin

10/06/2017 at 04:35PM

18
#556 - Elton Kamami / @pixel_grid

10/09/2017 at 07:00PM

18
#557 - sehe / @sehetw

10/10/2017 at 02:17PM

18
#558 - ryuugekisya / @ryuugekisya

11/06/2017 at 05:13AM

18
#559 - BareTull / @BareTull3

11/27/2017 at 02:54AM

18
#560 - TpouHuK / @TpouHuK_

02/02/2018 at 07:10PM

18
#561 - ifdkGDtr / @IfdkDtr

02/24/2018 at 04:45PM

18
#562 - Quade Morrison / @quade_morrison

05/07/2018 at 08:55PM

18
#563 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 01:45AM

18
#564 - Tom ten Thij / @eco_coder

07/11/2018 at 01:37PM

18
#565 - bluemartian / @bluemartianz59

08/18/2018 at 03:58PM

18
#566 - Cam Smith / @Comradesmith

08/21/2018 at 11:25AM

18
#567 - Weston Neal / @wtneal

09/05/2018 at 06:20PM

18
#568 - Roger Bongers / @RogerBongers

10/03/2018 at 09:31PM

18
#569 - Mike Chen / @chagel

10/29/2018 at 11:41PM

18
#570 - Kasparas Lavrukaitis / @kaslvr

11/04/2018 at 08:43AM